/* Authentication Pages Styling */

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    padding: 48px 24px;
}

.auth-wrapper {
    max-width: 576px;
    width: 100%;
    margin: 0 auto;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.register-wrapper {
    max-width: 576px;
}

/* Header */
.auth-header {
    margin-bottom: 32px;
}

.auth-logo-img {
    width: 80px;
    height: auto;
    margin-bottom: 24px;
    display: block;
}

.auth-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 30px;
    line-height: 1.2em;
    color: #111827;
    margin: 0 0 8px 0;
}

.auth-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #4B5563;
    margin: 0;
}

/* Form */
.auth-form {
    background: transparent;
}

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

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.21em;
    color: #374151;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    height: 54px;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 12px;
    padding: 0 48px 0 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5em;
    color: #111827;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: #ADAEBC;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-icon.toggle-password {
    left: auto;
    right: 16px;
    cursor: pointer;
    pointer-events: all;
}

.form-input {
    padding-left: 48px;
}

/* Checkbox & Remember */
.form-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
}

.form-checkbox {
    width: 16px;
    height: 16px;
    border: 0.5px solid #000000;
    border-radius: 1px;
    cursor: pointer;
}

.forgot-password a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #4F46E5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: #4338CA;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 52px;
    background: linear-gradient(90deg, #4F46E5 0%, #9333EA 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.21em;
    color: #FFFFFF;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(79, 70, 229, 0.3);
}

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

.register-submit {
    background: linear-gradient(90deg, #059669 0%, #0D9488 100%);
}

.register-submit:hover {
    box-shadow: 0 8px 16px rgba(5, 150, 105, 0.3);
}

/* File Upload */
.file-upload-wrapper {
    margin-bottom: 24px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 56px;
    background: #FFFFFF;
    border: 2px dashed #D1D5DB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    border-color: #059669;
    background: #F9FAFB;
}

.file-upload-label span {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #4B5563;
}

.file-upload-input {
    display: none;
}

.file-name {
    display: block;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #059669;
}

/* Footer */
.auth-footer {
    margin-top: 24px;
    text-align: center;
}

.auth-footer p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #4B5563;
    margin: 0;
}

.auth-footer a {
    color: #4F46E5;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.register-wrapper .auth-footer a {
    color: #059669;
}

.auth-footer a:hover {
    color: #4338CA;
}

.register-wrapper .auth-footer a:hover {
    color: #047857;
}

/* Messages */
.auth-message {
    margin-top: 16px;
}

.auth-message .success {
    padding: 12px 16px;
    background: #4c5f71;
    border: 1px solid #059669;
    border-radius: 8px;
    color: #065F46;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.auth-message .error {
    padding: 12px 16px;
    background: #FEE2E2;
    border: 1px solid #DC2626;
    border-radius: 8px;
    color: #991B1B;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* Loading Spinner */
.auth-loading {
    text-align: center;
    padding: 24px 0;
    margin: 16px 0;
}

.auth-loading p {
    margin: 12px 0 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #4B5563;
}

.spinner {
    margin: 0 auto;
    width: 40px;
    height: 40px;
    border: 4px solid #E5E7EB;
    border-top: 4px solid #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.register-wrapper .spinner {
    border-top-color: #059669;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 640px) {
    .auth-container {
        padding: 24px 16px;
    }
    
    .auth-wrapper {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .form-input {
        height: 48px;
    }
    
    .btn-submit {
        height: 48px;
    }
}
