/**
 * Lore Library - Authentication Page Styles
 * Styles specific to the login, registration, and authentication-related pages
 */

 .auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(44, 62, 80, 0.1) 100%);
}

.auth-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.auth-container {
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    text-align: center;
    margin: 1rem auto;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.auth-logo-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.auth-logo-text {
    font-size: 2rem;
    font-weight: bold;
    color: var(--dark);
}

.auth-tagline {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

.auth-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.auth-subheading {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--medium-gray);
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--medium-gray);
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-color: var(--light-gray);
}

.auth-divider span {
    padding: 0 0.5rem;
}

/* Microsoft button style */
.btn-microsoft {
    background-color: #000000; /* Black background */
    color: #ffffff; /* White text */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #000000 !important;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s;
}

/* Hover effect - change to white background with black text */
.btn-microsoft:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
}

.microsoft-logo {
    display: inline-flex;
    width: 24px;
    height: 24px;
    min-width: 24px;
}

.microsoft-logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 1px;
}

.microsoft-logo-square {
    width: 100%;
    height: 100%;
}

.microsoft-logo-square:nth-child(1) {
    background-color: #f25022; /* Red */
}

.microsoft-logo-square:nth-child(2) {
    background-color: #7fba00; /* Green */
}

.microsoft-logo-square:nth-child(3) {
    background-color: #00a4ef; /* Blue */
}

.microsoft-logo-square:nth-child(4) {
    background-color: #ffb900; /* Yellow */
}

/* Other social login buttons */
.btn-google {
    background-color: white;
    color: #444;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.btn-google:hover {
    background-color: #f8f8f8;
}

.btn-github {
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
}

.btn-github:hover {
    background-color: #222;
}

/* Auth form elements */
.auth-form {
    text-align: left;
}

.auth-input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.auth-checkbox input {
    width: 18px;
    height: 18px;
}

.auth-submit {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--accent);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.auth-submit:hover {
    background-color: var(--accent-dark);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.auth-footer a {
    color: var(--accent);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left: 3px solid var(--danger);
    color: var(--danger-dark);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.auth-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left: 3px solid var(--success);
    color: var(--success-dark);
    padding: 0.8rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

/* Animation for page transitions */
.auth-animate-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features section on the login page */
.auth-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
    gap: 2rem;
}

.auth-feature {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background-color: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.auth-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.auth-feature-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.auth-feature-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark);
}

.auth-feature-description {
    color: var(--medium-gray);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .auth-container {
        padding: 2rem;
    }
    
    .auth-features {
        flex-direction: column;
        align-items: center;
    }
    
    .auth-feature {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .auth-logo-icon {
        font-size: 2.5rem;
    }
    
    .auth-logo-text {
        font-size: 1.75rem;
    }
    
    .auth-heading {
        font-size: 1.25rem;
    }
}