:root {
    --green-950: #052e1a;
    --green-900: #06441f;
    --green-800: #075c2c;
    --green-700: #08733a;
    --green-600: #0e8f49;
    --green-500: #19a85a;
    --green-100: #e7f8ee;
    --yellow-500: #ffd429;
    --yellow-300: #ffe97a;
    --white: #ffffff;
    --text: #142019;
    --muted: #66736b;
    --border: #dfeee6;
    --shadow: 0 28px 80px rgba(5, 46, 26, 0.22);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 41, 0.20), transparent 30%),
        linear-gradient(135deg, #effaf3 0%, #f8fff9 45%, #e4f7eb 100%);
    color: var(--text);
}

.login-page {
    width: min(1180px, calc(100% - 32px));
    min-height: calc(100vh - 48px);
    margin: 24px auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    border-radius: 34px;
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
}

.info-panel {
    position: relative;
    overflow: hidden;
    padding: 48px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(5, 46, 26, 0.94), rgba(8, 115, 58, 0.90)),
        radial-gradient(circle at 18% 20%, rgba(255, 212, 41, 0.35), transparent 24%);
}

.ornament {
    position: absolute;
    border-radius: 999px;
    filter: blur(1px);
    opacity: 0.28;
}

.ornament-1 {
    width: 260px;
    height: 260px;
    right: -80px;
    top: -70px;
    background: var(--yellow-500);
}

.ornament-2 {
    width: 360px;
    height: 360px;
    left: -160px;
    bottom: -180px;
    background: #9be15d;
}

.brand-box,
.lead,
.feature-grid,
.notice-box {
    position: relative;
    z-index: 1;
}

.brand-box {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 36px;
}

.brand-logo {
    width: 108px;
    height: 108px;
    object-fit: contain;
    border-radius: 26px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.eyebrow {
    margin: 0 0 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    color: var(--yellow-300);
}

.eyebrow.dark {
    color: var(--green-700);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.05;
}

.lead {
    max-width: 620px;
    margin-bottom: 34px;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
}

.feature-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border-radius: 14px;
    background: rgba(255, 212, 41, 0.18);
    font-size: 22px;
}

.feature-card h3 {
    margin-bottom: 5px;
    font-size: 18px;
}

.feature-card p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.55;
}

.notice-box {
    padding: 18px 20px;
    border-left: 5px solid var(--yellow-500);
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.18);
    line-height: 1.6;
}

.form-panel {
    display: grid;
    place-items: center;
    padding: 48px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 252, 247, 0.98));
}

.login-card {
    width: min(100%, 430px);
}

.mobile-logo-wrap {
    display: none;
    text-align: center;
    margin-bottom: 18px;
}

.mobile-logo {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.card-heading {
    margin-bottom: 24px;
}

.card-heading h2 {
    margin-bottom: 8px;
    font-size: 34px;
    color: var(--green-950);
}

.card-heading p {
    color: var(--muted);
    line-height: 1.6;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #eaf9ef;
    color: #116b36;
    border: 1px solid #c9efd6;
}

.alert-danger {
    background: #fff0ef;
    color: #a12b22;
    border: 1px solid #ffd0cc;
}

.role-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 18px;
    background: var(--green-100);
}

.role-option {
    position: relative;
    cursor: pointer;
    padding: 13px 10px;
    border-radius: 14px;
    text-align: center;
    font-weight: 700;
    color: var(--green-800);
    transition: 0.2s ease;
}

.role-option input {
    position: absolute;
    opacity: 0;
}

.role-option.active {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: var(--white);
    box-shadow: 0 12px 24px rgba(14, 143, 73, 0.25);
}

.form-group {
    display: block;
    margin-bottom: 18px;
}

.form-group > span {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--green-950);
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fbfffc;
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(25, 168, 90, 0.12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 86px;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 38px;
    padding: 0 13px;
    border: none;
    border-radius: 12px;
    background: var(--green-100);
    color: var(--green-800);
    font-weight: 700;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    height: 56px;
    margin-top: 4px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--green-800), var(--green-500));
    color: var(--white);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(8, 115, 58, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(8, 115, 58, 0.34);
}

.help-box {
    margin-top: 24px;
    padding: 18px;
    border-radius: 18px;
    background: #f4fbf7;
    border: 1px solid var(--border);
    color: var(--muted);
    line-height: 1.55;
}

.help-box p {
    margin-bottom: 5px;
}

.help-box p:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .login-page {
        grid-template-columns: 1fr;
        width: min(100% - 18px, 620px);
        margin: 9px auto;
        border-radius: 24px;
    }

    .info-panel {
        padding: 32px 26px;
    }

    .brand-logo {
        width: 82px;
        height: 82px;
        border-radius: 20px;
    }

    .form-panel {
        padding: 34px 24px;
    }
}

@media (max-width: 560px) {
    body {
        background: #f3fbf6;
    }

    .info-panel {
        display: none;
    }

    .mobile-logo-wrap {
        display: block;
    }

    .login-page {
        min-height: calc(100vh - 18px);
    }

    .form-panel {
        padding: 28px 20px;
    }

    .card-heading {
        text-align: center;
    }
}


/* Step 5: registrasi user */
.register-page .login-card {
    width: min(100%, 460px);
}
.credential-box {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 16px;
    background: rgba(255,255,255,0.72);
    border: 1px solid #c9efd6;
}
.credential-box div {
    display: grid;
    gap: 4px;
}
.credential-box span {
    color: #66736b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.credential-box strong {
    color: #052e1a;
    font-size: 16px;
    overflow-wrap: anywhere;
}
.small-link-btn {
    margin-top: 14px;
    min-height: 42px;
    text-decoration: none;
}
.help-box a {
    color: var(--green-700);
    font-weight: 900;
    text-decoration: none;
}
.help-box a:hover {
    text-decoration: underline;
}


/* Step 5 Fix: tampilan registrasi dan input email */
.register-page .form-panel {
    background:
        radial-gradient(circle at top right, rgba(25, 168, 90, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 251, 245, 0.98));
}

.register-page .login-card {
    width: min(100%, 480px);
    padding: 30px;
    border: 1px solid rgba(8, 115, 58, 0.10);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 22px 60px rgba(5, 46, 26, 0.12);
    backdrop-filter: blur(10px);
}

.register-page .card-heading {
    padding: 18px 18px 16px;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(231, 248, 238, 0.92), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(8, 115, 58, 0.10);
}

.register-page .card-heading h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.register-page .card-heading h2::before {
    content: "📝";
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    font-size: 20px;
    box-shadow: 0 12px 24px rgba(8, 115, 58, 0.18);
}

.register-page .login-form {
    padding: 20px 0 4px;
}

.register-field {
    margin-bottom: 20px;
}

.register-field > span {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;
    font-size: 14px;
    letter-spacing: .01em;
}

.input-shell {
    position: relative;
}

.input-shell .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--green-100);
    color: var(--green-800);
    font-size: 16px;
    pointer-events: none;
}

.input-shell input[type="text"],
.input-shell input[type="email"],
.input-shell input[type="password"] {
    height: 60px;
    padding-left: 62px;
    border-radius: 20px;
    border: 1px solid #cfeade;
    background: #ffffff;
    font-size: 15.5px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 12px 26px rgba(5, 46, 26, 0.045);
}

.input-shell input[type="text"]::placeholder,
.input-shell input[type="email"]::placeholder,
.input-shell input[type="password"]::placeholder {
    color: #9aa9a0;
}

.input-shell:focus-within .input-icon {
    background: linear-gradient(135deg, var(--green-700), var(--green-500));
    color: #ffffff;
}

.input-shell:focus-within input {
    border-color: var(--green-500);
    box-shadow: 0 0 0 4px rgba(25, 168, 90, 0.12), 0 16px 32px rgba(5, 46, 26, 0.08);
}

.input-hint {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.register-page .btn-login {
    height: 60px;
    margin-top: 8px;
    border-radius: 20px;
    font-size: 17px;
}

.register-page .help-box {
    text-align: center;
    border-style: dashed;
}

@media (max-width: 560px) {
    .register-page .login-card {
        padding: 22px 18px;
        border-radius: 24px;
        box-shadow: none;
    }

    .register-page .card-heading h2 {
        justify-content: center;
    }
}


/* Step 11: Footer credit */
.site-credit-footer {
    width: min(1180px, calc(100% - 32px));
    margin: -8px auto 24px;
    padding: 15px 20px;
    text-align: center;
    border-radius: 22px;
    border: 1px solid rgba(8, 115, 58, 0.14);
    background: rgba(255, 255, 255, 0.90);
    color: var(--green-900);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 14px 34px rgba(5, 46, 26, 0.07);
}
@media (max-width: 760px) {
    .site-credit-footer {
        margin-top: 0;
        border-radius: 18px;
    }
}

/* Step 12: Footer hosting-safe override */
.site-credit-footer-wrap{
    width:100%;
    box-sizing:border-box;
    padding:18px 16px 22px;
    clear:both;
    position:relative;
    z-index:1;
}
.site-credit-footer-wrap .site-credit-footer,
.site-credit-footer{
    box-sizing:border-box;
    width:min(980px, 100%);
    margin:0 auto !important;
    padding:14px 18px !important;
    text-align:center !important;
    border-radius:999px !important;
    border:1px solid rgba(16, 128, 70, .18) !important;
    background:linear-gradient(135deg, rgba(255,255,255,.98), rgba(236,253,245,.96)) !important;
    color:#064e3b !important;
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-size:14px !important;
    font-weight:800 !important;
    letter-spacing:.01em !important;
    line-height:1.45 !important;
    box-shadow:0 10px 28px rgba(6,78,59,.10) !important;
}
.admin-main > .site-credit-footer-wrap{padding-left:0;padding-right:0;padding-bottom:8px;}
.login-body .site-credit-footer-wrap,.register-page .site-credit-footer-wrap{padding-top:6px;padding-bottom:24px;}
.user-page + .site-credit-footer-wrap{padding-top:0;}
@media(max-width:700px){
    .site-credit-footer-wrap{padding:14px 12px 18px;}
    .site-credit-footer-wrap .site-credit-footer,.site-credit-footer{border-radius:18px !important;padding:13px 14px !important;font-size:12.8px !important;}
}
