/* Main Login Section */
.login-main {
    min-height: calc(100vh - 400px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--white);
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Login Form Container */
.login-form-container {
    background: white;
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
    transition: max-width 0.4s ease, padding 0.4s ease;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 25px;
}

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

.form-logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 30px;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 2;
}

.tab-btn.active {
    background: white;
    color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-blue);
}

.tab-btn i {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

.tab-header {
    text-align: center;
    margin-bottom: 15px;
}

.form-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.form-subtitle {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.alert i {
    font-size: 18px;
}

/* Form Styles */
.login-form {
    margin-bottom: 20px;
}

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

.input-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 16px;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-blue);
}

/* Account Type Selection */
.account-type-selection {
    margin-bottom: 20px;
}

.account-type-wrapper {
    display: flex;
    gap: 8px;
    justify-content: center;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    position: relative;
}

.account-type-option {
    flex: 1;
    cursor: pointer;
    position: relative;
}

.account-type-radio {
    display: none;
}

.account-type-card {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
}

.account-type-card i {
    font-size: 14px;
    color: #64748b;
    transition: all 0.3s ease;
}

.account-type-card span {
    font-weight: 500;
    color: #64748b;
    font-size: 13px;
    transition: all 0.3s ease;
}

.account-type-card small {
    display: none;
}

.account-type-radio:checked + .account-type-card {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.account-type-radio:checked + .account-type-card i {
    color: var(--primary-blue);
}

.account-type-radio:checked + .account-type-card span {
    color: var(--primary-blue);
    font-weight: 600;
}

.account-type-card:hover:not(.account-type-radio:checked + .account-type-card) {
    background: rgba(255, 255, 255, 0.5);
}

/* Input Row */
.input-row {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
}

.input-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

/* Account Fields */
.account-fields {
    transition: all 0.3s ease;
}

.account-fields.hidden {
    display: none;
}

/* Register Form */
.register-form {
    margin-bottom: 20px;
}

.register-form .input-group {
    margin-bottom: 18px;
}

.register-form .form-options {
    margin-bottom: 20px;
}

.register-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.register-btn:hover {
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.forgot-password,
.terms-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover,
.terms-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.login-form-container.expanded {
    max-width: 700px;
    padding: 30px 50px;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.checkbox-label {
    color: #666;
    font-weight: 500;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* Login Footer */
.login-footer {
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: var(--light-blue);
    border-radius: 8px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    font-size: 14px;
    font-weight: 500;
}

.back-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.back-link:hover {
    background: var(--light-red);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-main {
        padding: 15px;
    }
    
    .login-form-container {
        padding: 25px 30px;
        max-width: 450px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-subtitle {
        font-size: 12px;
    }
    
    .form-logo-img {
        height: 50px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .tab-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-form-container {
        padding: 20px 25px;
        margin: 0 10px;
    }
    
    .form-title {
        font-size: 18px;
    }
    
    .form-logo-img {
        height: 45px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .login-footer {
        gap: 12px;
    }
    
    .info-box, .back-link {
        font-size: 13px;
    }
}

/* Animation Effects */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Loading State */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

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

/* Focus states for accessibility */
.form-input:focus,
.login-btn:focus,
.tab-btn:focus,
.password-toggle:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Hover effects */
.login-form-container:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}
