/* ===========================================================
   FADFAR AUTHENTICATION
   auth.css
=========================================================== */

/* ===========================================================
   RESET
=========================================================== */

*,
*::before,
*::after{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    font-size:16px;
    scroll-behavior:smooth;

}

body{

    font-family:Segoe UI,Arial,sans-serif;
    background:#f4f6f9;
    color:#333;
    line-height:1.5;

}

/* ===========================================================
   VARIABLES
=========================================================== */

:root{

    --primary:#2e7d32;
    --primary-hover:#256628;

    --secondary:#f44336;

    --text:#333;

    --muted:#777;

    --border:#dcdcdc;

    --background:#f4f6f9;

    --white:#ffffff;

    --radius:10px;

    --transition:.30s ease;

    --shadow:
        0 12px 35px rgba(0,0,0,.08);

}

/* ===========================================================
   PAGE
=========================================================== */

#main-content{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:40px 20px;

}

/* ===========================================================
   WRAPPER
=========================================================== */

.auth-wrapper{

    width:100%;
    max-width:460px;

}

/* ===========================================================
   CARD
=========================================================== */

.auth-card{

    background:var(--white);

    border-radius:16px;

    box-shadow:var(--shadow);

    overflow:hidden;

}

/* ===========================================================
   HEADER
=========================================================== */

.auth-header{

    text-align:center;

    padding:35px 35px 20px;

}

.header-logo{

    margin-bottom:20px;

}

.header-logo a{

    text-decoration:none;

}

.fadfar-logo{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    font-size:34px;

    font-weight:800;

}

.fadfar-logo i{

    margin-right:8px;

}

.red-part{

    color:#e53935;

}

.green-part{

    color:#2e7d32;

}

.auth-title{

    font-size:28px;

    font-weight:700;

    color:#222;

    margin-bottom:8px;

}

.auth-subtitle{

    color:#777;

    font-size:15px;

}

/* ===========================================================
   TABS
=========================================================== */

.auth-tabs{

    display:flex;

    border-bottom:1px solid #eee;

}

.auth-tab{

    flex:1;

    height:52px;

    border:none;

    background:#fafafa;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:var(--transition);

}

.auth-tab:hover{

    background:#f0f0f0;

}

.auth-tab.active{

    background:#fff;

    color:var(--primary);

    border-bottom:3px solid var(--primary);

}

/* ===========================================================
   BODY
=========================================================== */

.auth-body{

    padding:35px;

}

/* ===========================================================
   ALERT
=========================================================== */

.auth-alert{

    padding:14px 16px;

    border-radius:8px;

    margin-bottom:20px;

    font-size:14px;

}

.auth-alert.error{

    background:#ffe9e9;

    color:#b00020;

    border:1px solid #ffc5c5;

}

.auth-alert.success{

    background:#e9fff0;

    color:#0c7b35;

    border:1px solid #b7efca;

}

/* ===========================================================
   FORM
=========================================================== */

.auth-form{

    display:flex;

    flex-direction:column;

    gap:20px;

}

.form-group{

    display:flex;

    flex-direction:column;

}

.form-group label{

    margin-bottom:8px;

    font-size:14px;

    font-weight:600;

}

/* ===========================================================
   INPUT
=========================================================== */

.input-wrapper{

    position:relative;

}

.form-control{

    width:100%;

    height:50px;

    padding:0 45px 0 15px;

    border:1px solid var(--border);

    border-radius:8px;

    font-size:15px;

    outline:none;

    transition:var(--transition);

    background:#fff;

}

.form-control:focus{

    border-color:var(--primary);

    box-shadow:0 0 0 3px rgba(46,125,50,.12);

}

/* ===========================================================
   PASSWORD ICON
=========================================================== */

.password-toggle{

    position:absolute;

    right:15px;

    top:50%;

    transform:translateY(-50%);

    cursor:pointer;

    color:#888;

    font-size:18px;

    transition:var(--transition);

}

.password-toggle:hover{

    color:var(--primary);

}

/* ===========================================================
   OPTIONS
=========================================================== */

.auth-options{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

}

.remember{

    display:flex;

    align-items:center;

    gap:8px;

    font-size:14px;

}

.forgot-link{

    text-decoration:none;

    color:var(--primary);

    font-size:14px;

}

.forgot-link:hover{

    text-decoration:underline;

}

/* ===========================================================
   BUTTON
=========================================================== */

.auth-btn{

    height:50px;

    border:none;

    border-radius:8px;

    background:var(--primary);

    color:#fff;

    font-size:16px;

    font-weight:600;

    cursor:pointer;

    transition:var(--transition);

}

.auth-btn:hover{

    background:var(--primary-hover);

}

.auth-btn:disabled{

    opacity:.7;

    cursor:not-allowed;

}

/* ===========================================================
   FOOTER
=========================================================== */

.auth-footer{

    margin-top:30px;

    text-align:center;

    border-top:1px solid #eee;

    padding-top:25px;

}

.auth-footer p{

    margin-bottom:15px;

    color:#666;

}

.secondary-btn{

    display:inline-flex;

    justify-content:center;

    align-items:center;

    width:100%;

    height:48px;

    border:1px solid var(--border);

    border-radius:8px;

    text-decoration:none;

    color:#333;

    font-weight:600;

    transition:var(--transition);

}

.secondary-btn:hover{

    background:#f8f8f8;

}

/* ===========================================================
   PASSWORD STRENGTH
=========================================================== */

.password-strength{

    display:none;

    margin-top:10px;

}

.password-strength-bar{

    height:6px;

    background:#eee;

    border-radius:50px;

    overflow:hidden;

}

.password-strength-fill{

    width:0;

    height:100%;

    background:#ff9800;

    transition:.3s;

}

.password-strength-text{

    margin-top:6px;

    font-size:13px;

    color:#666;

}

/* ===========================================================
   PASSWORD MATCH
=========================================================== */

.password-match{

    display:none;

    font-size:13px;

    margin-top:8px;

}

.password-match.success{

    color:#2e7d32;

}

.password-match.error{

    color:#d32f2f;

}

/* ===========================================================
   MOBILE
=========================================================== */

@media(max-width:768px){

    #main-content{

        padding:25px 15px;

        align-items:flex-start;

    }

    .auth-header{

        padding:30px 25px 15px;

    }

    .auth-body{

        padding:25px;

    }

    .auth-title{

        font-size:24px;

    }

    .fadfar-logo{

        font-size:28px;

    }

}

/* ===========================================================
   SMALL PHONES
=========================================================== */

@media(max-width:420px){

    .auth-body{

        padding:20px;

    }

    .auth-options{

        flex-direction:column;

        align-items:flex-start;

    }

    .auth-btn{

        font-size:15px;

    }

}