/* ========================================
   MiniPyme360 - Auth UI (Monolithic Direct Style)
   ======================================== */

/* 
   GLOBAL RESET FOR AUTH PAGES 
   Defined specifically for body.guest scope to isolate from components.css 
*/
body.guest {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f0f2f5;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1c1e21;
    line-height: 1.34;
    -webkit-font-smoothing: antialiased;
}

/* Container Reset */
body.guest * {
    box-sizing: border-box;
}

/* Main Layout Container */
.auth-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 20px;
    max-width: 980px;
    width: 100%;
    margin: auto;
    /* Vertically and Horizontally centered in flex body */
    flex: 1;
    /* Take up available vertical space */
    gap: 40px;
}

/* === LEFT COLUMN: BRANDING === */
.auth-branding {
    flex: 1;
    min-width: 300px;
    max-width: 580px;
    padding-bottom: 20px;
    text-align: left;
}

.auth-branding h1 {
    font-size: 3rem;
    color: #5dbb96;
    /* Brand Primary */
    font-weight: 800;
    margin: 0;
    padding: 0;
    letter-spacing: -2px;
}

.auth-branding p {
    font-size: 1.5rem;
    line-height: 1.2;
    color: #1c1e21;
    margin-top: 10px;
    margin-bottom: 0;
}

/* === RIGHT COLUMN: CARD === */
.auth-card {
    flex: 0 0 400px;
    /* Fixed Width */
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    position: relative;
    z-index: 10;
}

/* Typography inside Card */
.auth-card h2 {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    color: #1c1e21;
    font-weight: 600;
}

.auth-card p {
    margin: 0 0 20px 0;
    color: #606770;
    font-size: 1rem;
    line-height: 1.4;
}

/* Inputs */
.auth-card input {
    width: 100%;
    font-size: 17px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    background: #FFFFFF;
    color: #1c1e21;
    transition: border-color 0.2s;
}

.auth-card input:focus {
    border-color: #5dbb96;
    outline: none;
    box-shadow: 0 0 0 2px rgba(93, 187, 150, 0.2);
}

/* Buttons - Specific styling to override any component.css bleed */
.auth-card button,
.auth-card .btn-primary,
.auth-card .btn-green,
.auth-card .btn-orange,
.auth-card .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    font-size: 20px;
    font-weight: bold;
    min-height: 48px;
    /* Allow growth */
    line-height: 1.2;
    /* Multi-line support */
    padding: 10px 16px;
    /* Vertical padding for wrapped text */
    color: #ffffff;
    cursor: pointer;
    text-decoration: none;
    margin-top: 6px;
    text-align: center;
    font-family: inherit;
    transition: background-color 0.2s;
}

/* Grey Action (Cancel/Secondary) */
.auth-card .btn-secondary {
    background-color: #e4e6eb;
    color: #4b4f56;
}

.auth-card .btn-secondary:hover {
    background-color: #d8dadf;
}

/* Primary Action (Login) */
.auth-card .btn-primary {
    background-color: #5dbb96;
    /* Teal */
}

.auth-card .btn-primary:hover {
    background-color: #4ea985;
}

/* Secondary Action (Register) - Now Brand Teal per user request */
.auth-card .btn-green {
    background-color: #5dbb96;
    /* User specified #5dbb96 */
    width: auto;
    /* Fit content */
    margin: 20px auto 0;
    /* Fit content */
    margin: 20px auto 0;
    padding: 10px 32px;
    font-size: 17px;
}

.auth-card .btn-green:hover {
    background-color: #4ea985;
}

/* Mobile/Orange Action */
.auth-card .btn-orange {
    background-color: #FF7A00;
}

.auth-card .btn-orange:hover {
    background-color: #e66e00;
}

/* Links */
.auth-forgot {
    margin-top: 16px;
    color: #5dbb96;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

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

.auth-divider {
    width: 100%;
    border-bottom: 1px solid #dadde1;
    margin: 20px 0;
}

/* Alerts */
.alert-error {
    width: 100%;
    background-color: #ffebe8;
    border: 1px solid #dd3c10;
    color: #dd3c10;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Action Buttons Container (Side by Side) */
.auth-actions {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.alert-success {
    width: 100%;
    background-color: #eafcf3;
    border: 1px solid #2d7a4f;
    color: #2d7a4f;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* === FOOTER === */
.auth-footer {
    background: #ffffff;
    color: #737373;
    padding: 20px 0;
    font-size: 12px;
    width: 100%;
    text-align: center;
    margin-top: auto;
}

.auth-footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.auth-footer-links a {
    color: #737373;
    margin: 0 10px;
    text-decoration: none;
}

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

/* === RESPONSIVE RULES === */
@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
        justify-content: center;
        padding-top: 20px;
        gap: 30px;
    }

    .auth-branding {
        text-align: center;
        padding-bottom: 0;
        max-width: 100%;
        flex: 0 0 auto;
        /* Prevent growing vertically */
        width: 100%;
    }

    .auth-branding h1 {
        font-size: 2.25rem;
        margin-bottom: 5px;
    }

    .auth-branding p {
        font-size: 1.2rem;
        margin-top: 5px;
    }

    .auth-card {
        width: 100%;
        max-width: 400px;
    }



    /* Stack buttons on mobile */
    .auth-actions {
        flex-direction: column;
        gap: 10px;
    }

    .auth-actions .btn-secondary,
    .auth-actions .btn-orange {
        width: 100%;
        margin: 0;
    }
}