/**
 * File: assets/css/login.css
 */

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: inline;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

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

.auth-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    font-weight: bold;
}

.auth-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.auth-subtitle {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.auth-body {
    padding: 40px 30px;
}

.auth-form {
    margin: 0;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.form-input-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    background: white;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.form-input.is-invalid {
    border-color: #dc3545;
    background: #fff5f5;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.checkbox-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin: 0;
}

.auth-submit {
    width: 100%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,123,255,0.3);
}

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

.auth-submit:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading .auth-submit {
    position: relative;
    color: transparent;
}

.loading .auth-submit::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.auth-links {
    text-align: center;
    font-size: 14px;
}

.auth-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.auth-link:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 24px 0;
    color: #6c757d;
    font-size: 14px;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e9ecef;
}

.divider span {
    background: white;
    padding: 0 16px;
    position: relative;
}

.forgot-password {
    text-align: right;
    margin-top: 8px;
}

.forgot-password a {
    color: #007bff;
    font-size: 12px;
    text-decoration: none;
}

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

.auth-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.auth-footer p {
    margin: 0;
    font-size: 14px;
    color: #6c757d;
}

.auth-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.password-strength {
    margin-top: 8px;
    font-size: 12px;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}

.strength-weak .strength-fill {
    background: #dc3545;
    width: 25%;
}

.strength-fair .strength-fill {
    background: #ffc107;
    width: 50%;
}

.strength-good .strength-fill {
    background: #fd7e14;
    width: 75%;
}

.strength-strong .strength-fill {
    background: #28a745;
    width: 100%;
}

.strength-text {
    margin-top: 4px;
    font-weight: 500;
}

.strength-weak .strength-text {
    color: #dc3545;
}

.strength-fair .strength-text {
    color: #ffc107;
}

.strength-good .strength-text {
    color: #fd7e14;
}

.strength-strong .strength-text {
    color: #28a745;
}

.social-login {
    margin-bottom: 24px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.social-btn:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.login-help {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 16px;
    margin-top: 24px;
    border-radius: 0 8px 8px 0;
}

.login-help h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
}

.login-help p {
    margin: 0;
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

@media (max-width: 480px) {
    .auth-container {
        margin: 10px;
        border-radius: 12px;
    }
    
    .auth-header,
    .auth-body,
    .auth-footer {
        padding: 24px 20px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .form-input {
        padding: 14px 16px;
        font-size: 16px;
    }
}

.verification-notice {
    background: #d1ecf1;
    color: #0c5460;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    text-align: center;
}

.verification-notice strong {
    display: block;
    margin-bottom: 4px;
}

.resend-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.resend-link:hover {
    text-decoration: underline;
}