/* ══════════════════════════════════════════════════════════════
   DRENASmart — Login Page Stylesheet
   Orange #FF8200 + White #FFFFFF + Green #009A44
   Split-panel modern auth design
   ══════════════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    background: #F8F9FA;
    overflow-x: hidden;
}

/* ── LEFT PANEL (Brand) ──────────────────────────────────── */
.auth-left {
    flex: 1;
    background: linear-gradient(160deg, #FF8200 0%, #E07200 35%, #009A44 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    top: -180px;
    right: -180px;
    width: 450px;
    height: 450px;
    background: rgba(255,255,255,.06);
    border-radius: 50%;
}
.auth-left::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -120px;
    width: 350px;
    height: 350px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}

.auth-left__brand {
    position: relative;
    z-index: 2;
    text-align: center;
}
.auth-left__logo {
    margin: 0 auto 24px;
    text-align: center;
}
.auth-left__logo img {
    height: 100px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0,0,0,.2));
}

.auth-left__title {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.5px;
}
.auth-left__subtitle {
    color: rgba(255,255,255,.85);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 380px;
}

.auth-left__features {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}
.auth-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.9);
}
.auth-feature__icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.auth-feature__text {
    font-size: .88rem;
    font-weight: 500;
}

/* ── RIGHT PANEL (Form) ──────────────────────────────────── */
.auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.auth-form-wrapper {
    width: 100%;
    max-width: 420px;
    animation: authSlideIn .5s ease-out;
}
@keyframes authSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.auth-form-header {
    margin-bottom: 32px;
}
.auth-form-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #212529;
    margin-top: 16px;
    margin-bottom: 6px;
}
.auth-form-header p {
    color: #6C757D;
    font-size: .95rem;
}

/* Step indicator */
.auth-step-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}
.auth-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    transition: all .3s;
}
.auth-step-dot--active {
    background: #FF8200;
    color: white;
    box-shadow: 0 2px 10px rgba(255, 130, 0, .3);
}
.auth-step-dot--inactive {
    background: #E9ECEF;
    color: #ADB5BD;
}
.auth-step-line {
    flex: 1;
    height: 2px;
    background: #E9ECEF;
    transition: background .3s;
}
.auth-step-line--active {
    background: #009A44;
}

/* Alerts */
.auth-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}
.auth-alert--error {
    background: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
}
.auth-alert--success {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #BBF7D0;
}

/* Fields */
.auth-field {
    margin-bottom: 22px;
}
.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #212529;
    font-weight: 600;
    font-size: .88rem;
}
.auth-input-wrap {
    position: relative;
}
.auth-input-wrap i.auth-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #ADB5BD;
    font-size: 17px;
    transition: color .2s;
    z-index: 2;
}
.auth-input-wrap input {
    width: 100%;
    padding: 14px 48px 14px 48px;
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 12px;
    color: #212529;
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    transition: all .25s;
}
.auth-input-wrap input::placeholder { color: #ADB5BD; }
.auth-input-wrap input:focus {
    outline: none;
    border-color: #FF8200;
    box-shadow: 0 0 0 4px rgba(255, 130, 0, .1);
}
.auth-input-wrap input:focus ~ i.auth-input-icon {
    color: #FF8200;
}

.auth-pwd-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ADB5BD;
    cursor: pointer;
    font-size: 17px;
    padding: 4px;
    transition: color .2s;
    z-index: 2;
}
.auth-pwd-toggle:hover { color: #FF8200; }

/* Buttons */
.auth-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #FF8200, #E07200);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(255, 130, 0, .3);
    margin-top: 8px;
}
.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 130, 0, .4);
}
.auth-btn--green {
    background: linear-gradient(135deg, #009A44, #007A36);
    box-shadow: 0 4px 16px rgba(0, 154, 68, .3);
}
.auth-btn--green:hover {
    box-shadow: 0 8px 24px rgba(0, 154, 68, .4);
}

/* ── STEP 2 ──────────────────────────────────────────────── */
.auth-user-info {
    background: #F8F9FA;
    border: 1px solid #E9ECEF;
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.auth-user-info__icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #009A44, #00B850);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}
.auth-user-info__text strong {
    display: block;
    font-size: .95rem;
    color: #212529;
}
.auth-user-info__text span {
    font-size: .8rem;
    color: #6C757D;
}

.auth-comp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.auth-comp-card {
    background: white;
    border: 2px solid #E9ECEF;
    border-radius: 14px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #212529;
}
.auth-comp-card i { font-size: 26px; color: #6C757D; transition: color .3s; }
.auth-comp-card span { font-size: .78rem; font-weight: 600; }
.auth-comp-card input { display: none; }

.auth-comp-card:hover {
    border-color: #FF8200;
    background: #FFF8F0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 130, 0, .12);
}
.auth-comp-card:hover i { color: #FF8200; }

.auth-comp-card.selected {
    border-color: #009A44;
    background: #F0FDF4;
    box-shadow: 0 0 0 3px rgba(0, 154, 68, .15);
}
.auth-comp-card.selected i { color: #009A44; }

/* Footer */
.auth-footer {
    text-align: center;
    padding: 24px 0 0;
    border-top: 1px solid #E9ECEF;
    margin-top: 32px;
}
.auth-footer span {
    color: #ADB5BD;
    font-size: .8rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 991px) {
    body { flex-direction: column; }

    .auth-left {
        flex: none;
        padding: 40px 24px 32px;
        min-height: auto;
    }
    .auth-left__features { display: none; }
    .auth-left__logo img { height: 70px; }
    .auth-left__subtitle { font-size: .85rem; max-width: 100%; }

    .auth-right {
        flex: 1;
        padding: 32px 24px;
    }
    .auth-form-wrapper { max-width: 100%; }
}
@media (max-width: 480px) {
    .auth-left { padding: 28px 16px 24px; }
    .auth-left__logo img { height: 55px; }
    .auth-left__subtitle { font-size: .78rem; }
    .auth-right {
        padding: 24px 16px;
        margin-top: -80px;
    }
    .auth-form-wrapper { position: relative; z-index: 2; }
    .auth-comp-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-form-header h1 { font-size: 1.4rem; }
}
