/* Auth Pages Styles - Doobazar Stack Layout */

:root {
    --auth-primary: #3467ce;
    /* Navbar Blue - Brand Color */
    --auth-primary-dark: #2a56a8;
    --auth-bg: #ffffff;
    --auth-text: #333333;
    --auth-text-light: #757575;
    --auth-border: #e0e0e0;
    --auth-link: #0099cc;
    --auth-input-bg: #ffffff;
}

body {
    background-color: var(--auth-bg);
    font-family: 'Open Sans', Roboto, sans-serif;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    padding: 50px 20px;
    min-height: 80vh;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    /* Slightly narrower for this focused design */
    display: flex;
    flex-direction: column;
}

/* Header */
.auth-header {
    margin-bottom: 25px;
    text-align: left;
    /* Keep title left or center? Image cut off but usually left or center. User didn't specify, I'll keep generic. */
}

.auth-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    margin: 0;
}

/* The Box (Optional in this design, it looks like it might be floating or in a subtle box. I'll keep the shadow box as user previously liked visibility) */
.auth-box {
    background: #ffffff;
    border: 1px solid var(--auth-border);
    border-radius: 8px;
    padding: 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.auth-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 700;
    color: var(--auth-text);
    text-align: center;
}

.auth-subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    color: var(--auth-text-light);
    text-align: center;
    line-height: 1.4;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Inputs */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group input {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    /* Soft rounding */
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 1px var(--auth-primary);
}

.form-group input::placeholder {
    color: #999;
}

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

.toggle-password {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
}

.error-text {
    font-size: 12px;
    color: #d32f2f;
}

/* Forgot Password Link - Aligned Right below password */
.forgot-password-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -5px;
    margin-bottom: 15px;
}

.forgot-link {
    font-size: 13px;
    color: var(--auth-text-light);
    /* Gray in the image */
    text-decoration: none;
}

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

/* Login Button - Full Width, Brand Color */
.btn-primary {
    width: 100%;
    height: 48px;
    background-color: var(--auth-primary);
    /* Brand Blue */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 15px;
}

.btn-primary:hover {
    background-color: var(--auth-primary-dark);
}

/* Register Link - Centered below button */
.register-text {
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-light);
    margin-bottom: 30px;
}

.register-text a {
    color: var(--auth-link);
    /* Blue link */
    text-decoration: none;
    font-weight: 600;
}

/* Divider "Or, login with" */
.social-divider {
    text-align: center;
    font-size: 14px;
    color: var(--auth-text-light);
    margin-bottom: 20px;
    position: relative;
}

/* Social Buttons - Bottom, Centered, Icon+Text style */
.social-login-bottom {
    display: flex;
    justify-content: center;
    gap: 30px;
    /* Space between Google and Facebook */
}

.btn-social-simple {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--auth-text-light);
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.2s;
}

.btn-social-simple:hover {
    background-color: #f5f5f5;
}

.btn-social-simple:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-social-simple img {
    width: 24px;
    height: 24px;
}

.btn-social-simple i {
    font-size: 20px;
}

.icon-google {
    color: #4285F4;
    /* Or use multi-colored icon if SVG available, but FontAwesome usually solid */
}

/* If using FontAwesome google icon, it is specific. The image has the colorful G. I might need an image or just use the colored FA icon. */
/* I'll use standard FA colors for now. */

.icon-fb {
    color: #1877F2;
    font-size: 22px;
}

/* Alerts */
.alert {
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 15px;
}

.alert-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

.alert-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.token-status {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 500px) {
    .auth-container {
        padding: 0 10px;
    }

    .auth-box {
        padding: 25px;
        box-shadow: none;
        /* Often simpler on mobile */
        border: none;
        background: transparent;
    }
}
