/* ==========================================================================
   Halaman Login SICANA V2
   Desain dua panel: hero hijau (kiri) + form putih (kanan).
   Dipakai oleh: resources/views/admin/auth/login.blade.php
   Catatan: Velzon (bootstrap/app/icons) tetap dimuat terpisah untuk alert
            feedback & ikon; file ini hanya styling khusus login.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Tokens & base
   -------------------------------------------------------------------------- */
:root {
    --sc-green:   #5E490A;
    --sc-green-d: #4C3B08;

    --sc-gold:    #F2C230;
    --sc-gold-d:  #D9A91A;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background: #fff;
}

/* --------------------------------------------------------------------------
   Animasi
   -------------------------------------------------------------------------- */
@keyframes scSpin {
    to { transform: rotate(360deg); }
}

@keyframes scFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@keyframes scSlowZoom {
    from { transform: scale(1.06); }
    to   { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   Layout utama
   -------------------------------------------------------------------------- */
.sc-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

/* ==========================================================================
   Panel kiri — hero
   ========================================================================== */
.sc-left {
    position: relative;
    overflow: hidden;
    background: #4C3B08;
}

.sc-left-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: scSlowZoom 14s ease-out both;
}

.sc-ov1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        145deg,
        rgba(217,169,26,.28) 0%,
        rgba(242,194,48,.18) 45%,
        rgba(217,169,26,.32) 100%
    );
}

.sc-ov2 {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,.18) 0%,
        rgba(0,0,0,0) 45%
    );
}

.sc-waves {
    position: absolute;
    left: -20%;
    bottom: -6%;
    width: 140%;
    height: 34%;
    z-index: 1;
    pointer-events: none;
    transform: rotate(-9deg);
}

.sc-left-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 46px 48px;
}

/* Brand (lambang + teks institusi) */
.sc-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sc-brand img {
    width: auto;
    height: 54px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .35));
}

.sc-brand-t1 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .16em;
}

.sc-brand-t2 {
    color: rgba(255, 255, 255, .74);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: .24em;
}

/* Hero tengah */
.sc-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.sc-hero-emblem {
    width: auto;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .35));
}

.sc-hero-title {
    color: #fff;
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.02em;
}

.sc-hero-v2 {
    margin-top: 6px;
    color: var(--sc-gold);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.sc-hero-rule {
    width: 50px;
    height: 4px;
    margin: 20px auto 0;
    background: var(--sc-gold);
    border-radius: 2px;
}

.sc-hero-slogan {
    margin-top: 18px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: .01em;
}

.sc-hero-desc {
    max-width: 440px;
    margin: 20px auto 0;
    color: rgba(255, 255, 255, .72);
    font-size: 15.5px;
    font-weight: 400;
    line-height: 1.7;
}

/* ==========================================================================
   Panel kanan — form
   ========================================================================== */
.sc-right {
    flex: none;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 52px 40px;
    background: #fff;
}

.sc-form-box {
    width: 100%;
    max-width: 410px;
    animation: scFadeUp .6s cubic-bezier(.16, 1, .3, 1) both;
}

.sc-h2 {
    color: #1D1C1A;
    font-size: 31px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.015em;
}

.sc-sub {
    margin-top: 9px;
    color: #77736B;
    font-size: 15px;
    line-height: 1.55;
}

.sc-sub b {
    color: var(--sc-gold);
    font-weight: 700;
}

/* Form & field */
.sc-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 32px;
}

.sc-label {
    display: block;
    margin-bottom: 8px;
    color: #43413B;
    font-size: 13px;
    font-weight: 600;
}

.sc-field {
    position: relative;
}

.sc-field-ico {
    position: absolute;
    left: 15px;
    top: 50%;
    display: flex;
    transform: translateY(-50%);
    color: #95928A;
    pointer-events: none;
}

.sc-input {
    width: 100%;
    height: 54px;
    padding: 0 16px 0 46px;
    color: #1D1C1A;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    border: 1.5px solid #E1E0DE;
    border-radius: 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.sc-input.has-toggle {
    padding-right: 50px;
}

.sc-input::placeholder {
    color: #A6A29A;
}

.sc-input:focus {
    border-color: var(--sc-gold);
    box-shadow: 0 0 0 4px rgba(94, 73, 10, .12);
}

.sc-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 40px #fff inset;
    -webkit-text-fill-color: #1E1D1A;
}

/* Tombol lihat/sembunyikan password */
.sc-eye {
    position: absolute;
    right: 9px;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px;
    transform: translateY(-50%);
    color: #95928A;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.sc-eye:hover {
    color: var(--sc-gold);
    background: #F3F3F2;
}

/* Baris "ingat saya" + lupa sandi */
.sc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
}

.sc-remember {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
    user-select: none;
}

.sc-remember input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.sc-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 1.5px solid #CDCBC6;
    border-radius: 6px;
    transition: background .15s, border-color .15s;
}

.sc-check svg {
    opacity: 0;
}

.sc-remember input:checked + .sc-check {
    background: var(--sc-gold);
    border-color: var(--sc-gold);
}

.sc-remember input:checked + .sc-check svg {
    opacity: 1;
}

.sc-remember-t {
    color: #55524B;
    font-size: 13.5px;
}

.sc-link {
    color: var(--sc-gold);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.sc-link:hover {
    text-decoration: underline;
}

/* Tombol submit */
.sc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 54px;
    margin-top: 6px;
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    font-family: inherit;
    background: var(--sc-gold);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background .15s, transform .12s, box-shadow .15s;
}

.sc-submit:hover {
    background: var(--sc-gold-d);
    transform: translateY(-1px);
}

.sc-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px rgba(94, 73, 10, .30);
}

/* Bantuan, copyright, alert */
.sc-help {
    margin-top: 28px;
    color: #77736B;
    font-size: 13.5px;
    text-align: center;
}

.sc-copy {
    margin-top: 38px;
    color: #A6A29A;
    font-size: 12px;
    letter-spacing: .01em;
    text-align: center;
}

.sc-feedback {
    margin-top: 18px;
}

/* ==========================================================================
   Responsif
   ========================================================================== */
/* Desktop: panel berdampingan */
@media (min-width: 900px) {
    .sc-wrap {
        flex-direction: row;
    }

    .sc-left {
        flex: 1.08;
        min-height: 100vh;
    }

    .sc-left-inner {
        justify-content: space-between;
        gap: 0;
        min-height: 100vh;
        padding: 56px 60px 50px;
    }

    .sc-hero-emblem { height: 96px; }
    .sc-hero-title  { font-size: 46px; }
    .sc-hero-v2     { font-size: 24px; }
    .sc-hero-slogan { font-size: 23px; }

    .sc-right {
        flex: .92;
        align-items: center;
        padding: 48px 40px;
    }
}

/* Ponsel */
@media (max-width: 559px) {
    .sc-left-inner {
        gap: 20px;
        padding: 34px 26px;
    }

    .sc-hero-emblem { height: 64px; }
    .sc-hero-title  { font-size: 30px; }

    .sc-right {
        padding: 36px 22px;
    }
}
