/*
-------------------------------------------------------
Solat Tracker
File    : forms.css
-------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| Login Card
|--------------------------------------------------------------------------
*/

.login-card{

    width:100%;

    max-width:420px;

    margin:70px auto;

}


/*
|--------------------------------------------------------------------------
| Login Header
|--------------------------------------------------------------------------
*/

.login-header{

    width:100%;

    text-align:center;

    margin-bottom:30px;

}


.login-logo{

    font-size:60px;

    line-height:1;

    margin-bottom:14px;

}


.login-header h2{

    margin:0;

}


.login-header p{

    color:var(--muted);

    margin-top:8px;

}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.login-form{

    width:100%;
    margin-bottom:14px;
}


.form-group{

    margin-bottom:20px;

}


.form-group label{

    display:block;

    margin-bottom:8px;

}


.form-control{

    width:100%;

    background:#121826;

    border:1px solid var(--border);

    color:var(--text);

    padding:14px;

    border-radius:12px;

    font-size:16px;

}


.form-control:focus{

    border-color:var(--primary);

    box-shadow:
        0 0 0 2px
        rgba(124,58,237,.15);

}


/*
|--------------------------------------------------------------------------
| Main Button
|--------------------------------------------------------------------------
*/

.btn{

    width:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    min-height:52px;

    background:var(--primary);

    border:none;

    color:white;

    padding:14px;

    border-radius:12px;

    text-align:center;

    text-decoration:none;

    transition:.25s;

    cursor:pointer;

}


.btn:hover{

    background:var(--primary-hover);

}


/*
|--------------------------------------------------------------------------
| Login Submit
|--------------------------------------------------------------------------
*/

.login-submit{

    width:100%;

}


/*
|--------------------------------------------------------------------------
| Authentication Links
|--------------------------------------------------------------------------
*/

.login-links{

    width:100%;

    margin-top:1px;

    display:grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:10px;

}


/*
|--------------------------------------------------------------------------
| Secondary Authentication Button
|--------------------------------------------------------------------------
*/

.auth-secondary-btn{

    width:100%;

    background:#1b2230;

    border:1px solid var(--border);

    color:var(--text);

}


.auth-secondary-btn:hover{

    background:var(--card-hover);

    border-color:var(--primary);

}


/*
|--------------------------------------------------------------------------
| Authentication Link
|--------------------------------------------------------------------------
*/

.auth-link{

    color:var(--primary);

    text-decoration:none;

}


.auth-link:hover{

    text-decoration:underline;

}


/*
|--------------------------------------------------------------------------
| Form Hint
|--------------------------------------------------------------------------
*/

.form-hint{

    display:block;

    margin-top:6px;

    color:var(--muted);

    font-size:12px;

    line-height:1.4;

}


/*
|--------------------------------------------------------------------------
| Alerts
|--------------------------------------------------------------------------
*/

.alert{

    padding:14px;

    border-radius:12px;

    margin-bottom:20px;

    text-align:center;

}


.success{

    background:#14532d;

    color:#dcfce7;

}


.warning{

    background:#78350f;

    color:#fef3c7;

}


.error{

    background:#7f1d1d;

    color:#fee2e2;

}


/*
|--------------------------------------------------------------------------
| CAPTCHA
|--------------------------------------------------------------------------
*/

.captcha-box{

    margin-bottom:20px;

}


.captcha-box label{

    display:block;

    margin-bottom:8px;

}


.captcha-question{

    margin-bottom:10px;

    padding:13px;

    border-radius:12px;

    border:1px solid var(--border);

    background:#121826;

    color:var(--muted);

    text-align:center;

}


.captcha-question strong{

    color:var(--text);

    font-size:18px;

    margin:0 4px;

}


/*
|--------------------------------------------------------------------------
| Mobile Authentication
|--------------------------------------------------------------------------
*/

@media(max-width:600px){

    .login-card{

        width:100%;

        max-width:none;

        margin:30px auto;

    }


    .login-header{

        margin-bottom:25px;

    }


    .login-logo{

        font-size:56px;

        margin-bottom:12px;

    }


    .login-header h2{

        font-size:30px;

    }


    .login-header p{

        font-size:16px;

    }


    /*
    |--------------------------------------------------------------------------
    | Stack Authentication Buttons
    |--------------------------------------------------------------------------
    */

    .login-links{

        grid-template-columns:1fr;

        gap:10px;

        margin-top:1px;

    }


    .login-links .btn{

        width:100%;

        min-height:52px;

    }

}


/*
|--------------------------------------------------------------------------
| Very Small Mobile
|--------------------------------------------------------------------------
*/

@media(max-width:380px){

    .login-card{

        margin-top:20px;

    }


    .login-header h2{

        font-size:27px;

    }


    .login-header p{

        font-size:15px;

    }


    .login-logo{

        font-size:50px;

    }


    .login-links .btn{

        font-size:15px;

    }

}


/*
|--------------------------------------------------------------------------
| Forgot Password Link
|--------------------------------------------------------------------------
*/

.login-forgot{

    width:100%;

    margin-top:18px;

    text-align:center;

}


.login-forgot .auth-link{

    color:var(--muted);

    text-decoration:none;

}


.login-forgot .auth-link:hover{

    color:var(--primary-hover);

    text-decoration:underline;

}
