/* Authentication Pages Styles */
:root {
    --auth-card-radius: 16px;
    --auth-input-radius: 8px;
    --auth-btn-radius: 8px;
    --auth-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    --auth-transition: all 0.3s ease;
    --auth-accent: rgba(79, 140, 255, 0.1);
    --auth-border: 1px solid rgba(0, 0, 0, 0.08);
    --auth-input-bg: #ffffff;
    --auth-card-bg: #ffffff;
    --auth-text: #333333;
    --auth-text-secondary: #666666;
    --auth-placeholder: #999999;
    --auth-divider: #e0e0e0;
    --auth-input-border: #d0d0d0;
    --auth-input-focus: #4f8cff;
    --auth-input-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2);
    --auth-social-hover: #f5f5f5;
    --auth-error: #e74c3c;
    --auth-success: #2ecc71;
}

/* Dark mode variables */
body.dark-mode {
    --auth-card-bg: #1a1a2e;
    --auth-input-bg: #252538;
    --auth-text: #e0e0e0;
    --auth-text-secondary: #b0b0b0;
    --auth-placeholder: #808080;
    --auth-divider: #444444;
    --auth-input-border: #444444;
    --auth-border: 1px solid rgba(255, 255, 255, 0.08);
    --auth-social-hover: rgba(255, 255, 255, 0.05);
    --auth-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.auth-page {
    background-color: var(--bg-color, #f9f9f9);
    min-height: 100vh;
}

.auth-container {
    display: flex;
    min-height: calc(100vh - 140px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.auth-card {
    flex: 1;
    background-color: var(--auth-card-bg);
    border-radius: var(--auth-card-radius);
    box-shadow: var(--auth-shadow);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    border: var(--auth-border);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color, #4f8cff), var(--secondary-color, #009ffd));
}

.auth-image {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color, #4f8cff), var(--secondary-color, #009ffd));
    border-radius: var(--auth-card-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/code-pattern.svg');
    background-size: cover;
    opacity: 0.1;
}

.auth-image-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem;
    text-align: center;
    max-width: 90%;
}

.auth-image h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-image p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.auth-feature {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    width: fit-content;
}

.auth-feature i {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.25rem;
    color: var(--auth-text);
    margin-bottom: 0.75rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color, #4f8cff), var(--secondary-color, #009ffd));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--auth-text-secondary);
    font-size: 1.1rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 1.75rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    border-radius: var(--auth-btn-radius);
    border: var(--auth-border);
    background-color: var(--auth-input-bg);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--auth-transition);
    color: var(--auth-text);
}

.social-btn i {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.social-btn.google i {
    color: #DB4437;
}

.social-btn.github i {
    color: #333;
}

body.dark-mode .social-btn.github i {
    color: #f0f0f0;
}

.social-btn:hover {
    background-color: var(--auth-social-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.75rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--auth-divider);
}

.divider span {
    padding: 0 1.25rem;
    color: var(--auth-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    margin-bottom: 0.625rem;
    font-weight: 500;
    color: var(--auth-text);
    font-size: 0.95rem;
}

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

.input-group i {
    position: absolute;
    left: 1rem;
    color: var(--auth-placeholder);
    transition: var(--auth-transition);
    font-size: 1.1rem;
    z-index: 2;
}

.input-group .toggle-password {
    left: auto;
    right: 1rem;
    cursor: pointer;
    opacity: 0.7;
}

.input-group .toggle-password:hover {
    opacity: 1;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.75rem;
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-input-radius);
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    transition: var(--auth-transition);
    background-color: var(--auth-input-bg);
    color: var(--auth-text);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.input-group input::placeholder {
    color: var(--auth-placeholder);
    opacity: 0.8;
}

.input-group input:focus {
    border-color: var(--auth-input-focus);
    outline: none;
    box-shadow: var(--auth-input-shadow);
}

.input-group input:focus + i {
    color: var(--auth-input-focus);
}

/* Password strength meter */
.password-strength {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.strength-meter {
    display: flex;
    gap: 4px;
    flex: 1;
}

.strength-segment {
    height: 4px;
    flex: 1;
    background-color: var(--auth-divider);
    border-radius: 2px;
    transition: var(--auth-transition);
}

.strength-text {
    font-size: 0.8rem;
    color: var(--auth-text-secondary);
    white-space: nowrap;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-right: 0.5rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.remember-me label {
    color: var(--auth-text-secondary);
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--auth-transition);
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--secondary-color);
}

.auth-btn {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: var(--auth-btn-radius);
    padding: 1rem;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--auth-transition);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(79, 140, 255, 0.3);
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(79, 140, 255, 0.3);
}

.auth-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-footer {
    margin-top: 2.5rem;
    text-align: center;
    color: var(--auth-text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--auth-transition);
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: var(--auth-transition);
}

.auth-footer a:hover {
    color: var(--secondary-color);
}

.auth-footer a:hover::after {
    width: 100%;
}

/* Notification styles for form validation */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--auth-input-radius);
    display: flex;
    align-items: center;
    max-width: 350px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideIn 0.3s ease-out forwards;
}

.notification.error {
    background-color: var(--auth-error);
    color: white;
}

.notification.success {
    background-color: var(--auth-success);
    color: white;
}

.notification i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .auth-container {
        flex-direction: column;
        padding: 1.5rem;
    }
    
    .auth-image {
        margin-top: 2rem;
        min-height: 300px;
    }
}

@media screen and (max-width: 768px) {
    .auth-card {
        padding: 2rem;
    }
    
    .auth-header h2 {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .auth-btn {
        padding: 0.875rem;
    }
}

@media screen and (max-width: 576px) {
    .auth-card {
        padding: 1.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.75rem;
    }
    
    .auth-container {
        padding: 1rem;
    }
    
    .social-btn {
        padding: 0.75rem;
    }
    
    .input-group input {
        padding: 0.875rem 1rem 0.875rem 2.5rem;
    }
}
