:root {
    --netbrux-gradient: linear-gradient(135deg, #FB4E00 0%, #D34300 100%);
    --netbrux-primary: #FB4E00;
    --netbrux-secondary: #D34300;
}

.netbrux-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.netbrux-login-overlay.active {
    opacity: 1;
    visibility: visible;
}

.netbrux-login-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 480px;
    max-width: 95vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.netbrux-login-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.login-modal-container {
    position: relative;
    height: 100%;
    overflow-y: auto;
}

.login-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.login-modal-close:hover {
    background: rgba(251, 78, 0, 0.1);
    transform: rotate(90deg);
}

.login-modal-close svg {
    stroke: #666;
}

.login-modal-close:hover svg {
    stroke: var(--netbrux-primary);
}

.login-tabs {
    display: flex;
    border-bottom: 2px solid #f0f0f0;
    padding: 0 30px;
    gap: 8px;
}

.login-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    color: #999;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.login-tab:hover {
    color: var(--netbrux-primary);
    background: rgba(251, 78, 0, 0.05);
}

.login-tab.active {
    color: var(--netbrux-primary);
    border-bottom-color: var(--netbrux-primary);
}

.login-tab svg {
    stroke: currentColor;
}

.login-modal-content {
    padding: 0;
}

.login-panel {
    display: none;
    padding: 32px 32px 36px;
    animation: fadeIn 0.4s ease;
}

.login-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    text-align: center;
    margin-bottom: 32px;
}

.panel-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
    background: var(--netbrux-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.form-group label svg {
    stroke: var(--netbrux-primary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: var(--netbrux-primary);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(251, 78, 0, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password svg {
    stroke: #999;
    transition: stroke 0.3s ease;
}

.toggle-password:hover svg {
    stroke: var(--netbrux-primary);
}

.password-strength {
    height: 4px;
    background: #e5e5e5;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.password-strength::before {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: #e74c3c;
    transition: all 0.3s ease;
}

.password-strength.weak::before {
    width: 33%;
    background: #e74c3c;
}

.password-strength.medium::before {
    width: 66%;
    background: #f39c12;
}

.password-strength.strong::before {
    width: 100%;
    background: #27ae60;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: var(--netbrux-primary);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-messages {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    display: none;
}

.form-messages.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-messages.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.form-messages.success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.form-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--netbrux-gradient);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 6px 20px rgba(251, 78, 0, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(251, 78, 0, 0.4);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-loader svg {
    animation: rotate 1s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

body.login-modal-open {
    overflow: hidden;
}

@media (max-width: 576px) {
    .netbrux-login-modal {
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        transform: translate(-50%, -50%);
    }
    
    .netbrux-login-modal.active {
        transform: translate(-50%, -50%);
    }
    
    .login-panel {
        padding: 24px 20px 28px;
    }
    
    .login-tabs {
        padding: 0 20px;
    }
}
