:root{
    --gold:#C5A059;
    --dark:#111;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:'Poppins',sans-serif;
    background:#111;
    overflow-x:hidden;
}

/* NAV */
.nav-box{
    position:fixed;
    top:20px;
    left:30px;
    z-index:999;
}

.back-home{
    text-decoration:none;
    color:#fff;
    background:rgba(255,255,255,0.1);
    padding:10px 18px;
    border-radius:30px;
    font-size:14px;
    transition:0.3s;
}

.back-home:hover{
    background:rgba(255,255,255,0.2);
}

/* WRAPPER */
.login-wrapper{
    display:flex;
    min-height:100vh;
}

/* LEFT */
.login-left{
    flex:1;

    background:
    linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.7)),
    url('images/login-bg.jpg');

    background-size:cover;
    background-position:center;

    display:flex;
    align-items:flex-end;

    padding:60px;
}

.left-content{
    max-width:500px;
}

.left-content h1{
    font-size:4rem;
    color:var(--gold);
    margin:0;
}

.left-content p{
    color:#ddd;
    line-height:1.8;
    margin-top:20px;
}

/* RIGHT */
.login-right{
    width:470px;
    background:#f2f2f2;

    display:flex;
    align-items:flex-start;
    justify-content:center;

    padding:40px;

    overflow-y:auto;
    max-height:100vh;
}

.google-btn {
    text-decoration: none;
    color: #111;
    font-weight: 600;
}

.google-btn:hover {
    text-decoration: none;
}

.login-box{
    width:100%;
    min-height:100vh;

    display:flex;
    flex-direction:column;
    justify-content:center;

    padding:30px 0;
}

.message {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 500;
}

.message.error {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
    border: 1px solid rgba(255, 77, 77, 0.25);
}

.message.success {
    background: rgba(46, 204, 113, 0.12);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.25);
}

.login-box h2{
    margin:0;
    font-size:2rem;
    color:#111;
}

.subtitle{
    color:#666;
    margin:10px 0 30px;
}

.error-msg{
    background:#ffd7d7;
    color:#b30000;
    padding:12px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:14px;
}

/* TABS */
.auth-tabs{
    display:grid;
    grid-template-columns:1fr 1fr;

    background:#ddd;

    border-radius:14px;

    padding:5px;

    margin-bottom:25px;
}

.tab-btn{
    border:none;
    padding:12px;

    border-radius:10px;

    background:transparent;

    cursor:pointer;

    font-weight:700;

    transition:0.3s;
}

.tab-btn.active{
    background:var(--gold);
    color:#000;
}

/* INPUTS */
label{
    display:block;
    margin-bottom:8px;
    margin-top:18px;
    font-size:14px;
    color:#222;
    font-weight:500;
}

input{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #ccc;
    outline:none;
    font-family:inherit;
}

.password-box{
    position:relative;
}

.password-box i{
    position:absolute;
    top:17px;
    right:15px;
    cursor:pointer;
    color:#666;
}

/* OPTIONS */
.options{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-top:15px;

    font-size:13px;
}

.options a{
    color:#444;
    text-decoration:none;
}

.remember{
    display:flex;
    align-items:center;
    gap:6px;
}

/* BUTTONS */
.sign-in,
.submit-btn{
    width:100%;

    margin-top:25px;

    padding:14px;

    border:none;
    border-radius:14px;

    background:var(--gold);
    color:#000;

    font-weight:700;

    cursor:pointer;

    transition:0.3s;
}

.sign-in:hover,
.submit-btn:hover{
    transform:translateY(-2px);
}

.google-btn{
    width:100%;

    margin-top:15px;

    padding:14px;

    border-radius:14px;

    border:1px solid #ccc;

    background:#fff;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;

    cursor:pointer;
}

.google-btn img{
    width:18px;
}

/* REGISTER */
#registerForm{
    display:none;
    padding-bottom:40px;
}

.form-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.input-field{
    margin-top:0;
}

/* RESPONSIVE */
@media(max-width:900px){

    .login-left{
        display:none;
    }

    .login-right{
        width:100%;
    }

    .form-grid{
        grid-template-columns:1fr;
    }

}