:root{
    /* Background */
    --bg-main: #FAFAFA;
    --bg-card: #FFFFFF;
    --bg-muted: #F3F4F6;
    --border-soft: #E5E7EB;
    --border-strong: #D1D5DB;
    --primary: #1c8442;
    --primary-hover: #166534;
    --primary-soft: #DCFCE7;
    --text-main: #111827;
    --text-muted: #6B7280;
    --text-soft: #9CA3AF;
    --text-inverse: #FFFFFF;
    --success: #16A34A;
    --warning: #F59E0B;
    --danger: #DC2626;
    --info: #0EA5E9;
    --shadow-s: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-m: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-l: 0 10px 25px rgba(0,0,0,0.15);
    --radius-s: 6px;
    --radius-m: 10px;
    --radius-l: 16px;
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100..900&display=swap');
*, *::after, *::before{
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    scroll-behavior: smooth;
    box-sizing: border-box;
}
body{
    background-color: var(--bg-main);
    font-size: 16px;
    font-weight: normal;
    font-family: 'Roboto', sans-serif;
    color: #000;
}
/* =======================
   AUTH SECTION
======================= */
.auth-section{
    width: 100%;
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* =======================
   GRID
======================= */
.grid-2{
    width: 100%;
    max-width: 1200px;
    padding: 5rem 10px 1rem 10px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

/* =======================
   IMAGE SIDE
======================= */
.form-inner.forimage{
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-img{
    width: 100%;
    max-width: 420px;
    object-fit: contain;
}

/* =======================
   FORM CARD
======================= */
.authform{
    padding: 30px;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-m);
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius-l);
}

.authform h1{
    color: var(--text-main);
    font-size: 30px;
    margin-bottom: 1.5rem;
}

/* =======================
   INPUT
======================= */
.input-group{
    position: relative;
    background-color: var(--bg-card);
    border: 1px solid var(--border-strong);
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 1rem;
    border-radius: var(--radius-m);
}

.input-group input{
    width: 100%;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: var(--text-main);
}

.input-group:focus-within{
    border-color: var(--primary);
}

/* =======================
   EYE ICON
======================= */
.eyekan{
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
}

.eyekan span{
    display: none;
}

.eyekan span#liat{
    display: inline;
}

/* =======================
   LINK
======================= */
.forgot{
    display: inline-block;
    margin-bottom: 1.2rem;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
}

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

/* =======================
   BUTTON
======================= */
.btn-submit{
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-m);
    border: none;
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-submit:hover{
    background: var(--primary-hover);
}

/* =======================
   FOOT TEXT
======================= */
.next-text{
    margin-top: 1.5rem;
    font-size: 14px;
    color: var(--text-muted);
}

.next-text a{
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.next-text a:hover{
    text-decoration: underline;
}

/* =======================
   BACK BUTTON
======================= */
.back-to-home{
    position: absolute;
    top: 1rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border-soft);
    padding: 10px 20px;
    border-radius: var(--radius-m);
    background-color: var(--bg-card);
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition-base);
    box-shadow: var(--shadow-s);
}

.back-to-home:hover{
    transform: scale(1.05);
}
/* =======================
   ALERT
======================= */
.alert{
    position: fixed;
    top: 1.2rem;
    right: 1.5rem;
    min-width: 280px;
    max-width: 360px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-m);
    font-size: 14px;
    z-index: 999;
    animation: slideIn 0.4s ease;
}

.alert i{
    font-size: 18px;
}

/* SUCCESS */
.alert-success{
    background: #ECFDF5;
    color: #065F46;
    border-left: 5px solid var(--success);
}

/* ERROR */
.alert-error{
    background: #FEF2F2;
    color: #7F1D1D;
    border-left: 5px solid var(--danger);
}

/* CLOSE BUTTON */
.alert-close{
    margin-left: auto;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: inherit;
}

/* ANIMATION */
@keyframes slideIn{
    from{
        transform: translateX(100%);
        opacity: 0;
    }
    to{
        transform: translateX(0);
        opacity: 1;
    }
}
