/* 
 * AIMangaMaker.com - Authentication Styles
 * Styling for login, registration, and other auth pages
 */

/* ===== AUTH CONTAINER ===== */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background-color: var(--dark-color);
}

/* ===== AUTH CONTENT ===== */
.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: var(--dark-color);
}

.auth-header {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.auth-header .logo img {
    height: 40px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background-color: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(128, 128, 128, 0.3);
}

.auth-card h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--white);
    font-weight: 600;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.input-icon-wrapper {
    position: relative;
}

.input-icon-wrapper i {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: var(--light-color)999;
}

.input-icon-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border: 1px solid #333333;
    border-radius: 4px;
    background-color: var(--text-color)333;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.input-icon-wrapper input:focus {
    border-color: #ffffff;
    outline: none;
    background-color: #454545;
}

.input-icon-wrapper input::placeholder {
    color: var(--light-color)999;
    opacity: 1;
}

.checkbox-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #b3b3b3;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.5rem;
}

.forgot-password {
    font-size: 0.875rem;
    color: #b3b3b3;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--white);
}

.btn-block {
    width: 100%;
}

/* ===== AUTH DIVIDER ===== */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--text-color)333;
}

.auth-divider span {
    position: relative;
    padding: 0 1rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: #b3b3b3;
    font-size: 0.875rem;
}

/* ===== SOCIAL LOGIN ===== */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background-color: var(--text-color)333;
    border: 1px solid #333333;
    color: #b3b3b3;
    font-weight: 500;
    transition: var(--transition);
}

.btn-social:hover {
    background-color: #454545;
    color: var(--white);
    border-color: #454545;
}

.btn-google i {
    color: #EA4335;
}

.btn-facebook i {
    color: #1877F2;
}

/* ===== AUTH FOOTER ===== */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: #b3b3b3;
}

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

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

/* ===== AUTH SHOWCASE ===== */
.auth-showcase {
    background: linear-gradient(180deg, #000000 0%, #1a1a1a 100%);
    color: var(--white);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.6);
}

.showcase-content {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.showcase-logo {
    margin-bottom: 2rem;
}

.showcase-logo img {
    height: 80px;
    max-width: 350px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.showcase-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.showcase-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
}

.showcase-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-item i {
    font-size: 2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.feature-item span {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.free-credits {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.free-credits i {
    font-size: 3rem;
    color: #FFC107;
}

.credits-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

.credits-info p {
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.showcase-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.showcase-img.active {
    opacity: 0.3;
}

/* ===== ALERTS ===== */
.alert {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert i {
    font-size: 1.25rem;
}

.alert-error {
    background-color: rgba(229, 9, 20, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.15);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 5px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-meter-fill {
    height: 100%;
    width: 0;
    background-color: #e74c3c;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-showcase {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.5rem;
        box-shadow: none;
    }
    
    .auth-header {
        position: relative;
        top: auto;
        left: auto;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .checkbox-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}