/* Base styles */
:root {
    --primary-color: #14213d; /* Navy dark blue */
    --accent-color: #8b1e3f; /* Maroon dark red */
    --text-color: #333333;
    --error-color: #dc3545;
    --success-color: #28a745;
    --border-color: #e6e6e6;
    --background-color: #f8f9fa;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.auth-page {
    display: flex;
    flex-direction: column;
    min-height: 93vh;
    padding: 20px;    
}

.auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: auto;
}

.auth-box {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    width: 100%;
}

.auth-page h1 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

/* Form styles */
.auth-page .auth-form {
    margin-bottom: 1.5rem;
}

.auth-page .form-group {
    margin-bottom: 1.2rem;
}

.auth-page label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.auth-page input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.auth-page input:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Password input */
.auth-page .password-input {
    position: relative;
}

.auth-page .toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.auth-page .eye-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url('../images/resources/eye.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Form options */
.auth-page .form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.auth-page .remember-me {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-page .remember-me input[type="checkbox"] {
    width: auto;
}

.auth-page .forgot-password {
    color: var(--accent-color);
    text-decoration: none;
}

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

/* Buttons */
.auth-page .btn-primary {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.auth-page .btn-primary:hover {
    background: #333;
}

/* Social login */
.auth-page .social-login {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-page .social-login p {
    color: #666;
    margin-bottom: 1rem;
}

.auth-page .social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.auth-page .btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-page .btn-social img {
    width: 20px;
    height: 20px;
}

.auth-page .btn-google:hover {
    background: #f1f1f1;
}

.auth-page .btn-github:hover {
    background: #24292e;
    color: #fff;
}

.auth-page .btn-facebook:hover {
    background: #1877f2;
    color: #fff;
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: auto;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Error message */
.auth-page .error-message {
    background: #fde8e8;
    color: var(--error-color);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    text-align: center;
}

/* Success message */
.auth-page .success-message {
    background: #e8f5e9;
    color: var(--success-color);
    padding: 0.8rem;
    border-radius: 6px;
    margin-bottom: 1.2rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-message i {
    font-size: 1.1em;
}

/* 2FA specific styles */
.auth-page #2faGroup input {
    letter-spacing: 0.5em;
    text-align: center;
    font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 480px) {
    .auth-page .auth-box {
        padding: 1.5rem;
    }

    .auth-page h1 {
        font-size: 1.5rem;
    }

    .auth-page .form-options {
        flex-direction: column;
        gap: 0.8rem;
        align-items: flex-start;
    }
}

.btn-link {
    background: none;
    border: none;
    color: var(--accent-color);
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-color);
}

.resend-btn {
    margin-left: 5px;
    font-weight: 500;
}

.info-message {
    background-color: #e3f2fd;
    color: #1565c0;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.info-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    flex: 1;
}

/* Two-column layout for login page */
.auth-container.two-column {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 1200px;
    min-height: 350px;
    background: none;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.auth-media-slider {
    flex: 1;
    background: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    min-width: 0;
    padding: 2rem;
}

.auth-container.two-column .auth-box {
    flex: 1;
    border-radius: 0;
    box-shadow: none;
    min-width: 0;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.auth-box .auth-form {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

.auth-box .form-group input {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .auth-container.two-column {
        max-width: 98vw;
    }
}

@media (max-width: 900px) {
    .auth-container.two-column {
        flex-direction: column;
        min-height: unset;
        max-width: 98vw;
    }
    .auth-media-slider {
        min-height: 400px;
        padding: 1rem;
    }
    .phone-frame {
        width: 200px;
        height: 400px;
    }
    .auth-container.two-column .auth-box {
        min-height: 220px;
        padding: 2rem 1rem;
    }
    .auth-box .auth-form {
        max-width: 100%;
    }
}

/* Phone frame styling */
.phone-frame {
    position: relative;
    width: 240px;
    height: 480px;
    background: #1a1a1a;
    border-radius: 25px;
    padding: 6px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Media slider: show only active slide */
.media-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.media-slide {
    display: none;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    opacity: 0;
}

.media-slide.active {
    display: flex;
    opacity: 1;
    position: relative;
}

.media-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.media-slider-controls {
    position: relative;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    z-index: 2;
}

.media-slider-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
    color: #333;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: background 0.2s, border 0.2s;
}

.media-slider-btn:hover {
    background: #f3f3f3;
    border-color: #aaa;
} 