:root {
    --primary-orange: #E74040;
    --primary-orange-hover: #d95517;
    --brand-red: #EE4444;
    --text-dark: #1F2228;
    --bg-border-color: #5d7549;
    --btn-green: #486F3E;
    --sta-green: #4C7745;
    /* Green outer background as seen in the mockup */
}

body {
    background-color: var(--bg-border-color);
    padding: 1rem;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    display: flex;
    flex-direction: column;
}

.text-primary {
    color: var(--primary-orange) !important;
}

.main-container {
    background-color: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: calc(100vh - 2rem);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Header Styles */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 1rem 0;
    border-bottom: 2px solid #2B2D31;
    margin: 0 1.5rem;
    /* Offset border from the edges slightly */
}

.brand {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.guide-link {
    color: var(--brand-red);
    font-weight: 600;
    text-decoration: underline;
    font-size: 0.95rem;
    margin-left: 0.5rem;
}

.guide-link:hover {
    color: #cc0000;
}

/* Hero / Background Area */
.hero-section {
    flex-grow: 1;
    position: relative;
    background-image: url('../img/bg_landing.jpg');
    /* Ensure bg_landing.jpg is in the images folder */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    margin: 1.5rem;
    display: flex;
    flex-direction: column;
}

/* Dark overlay for better text readability at the bottom */
.hero-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    pointer-events: none;
}

/* Middle Card Container */
.middle-card-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 2rem 1rem;
}

.info-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 3rem 2.5rem 2.5rem;
    text-align: center;
    max-width: 50%;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.divider {
    height: 1px;
    background-color: #737373;
    width: 100%;
}

.info-card p {
    font-size: 0.95rem;
    color: #4A5568;
    line-height: 1.7;
    margin-bottom: 2rem;
    font-weight: 600;
}

.info-card p a {
    color: var(--brand-red);
    font-weight: 700;
    text-decoration: none;
}

.info-card p a:hover {
    text-decoration: underline;
}

.id-icon {
    font-size: 5rem;
    color: #1F2228;
    margin-bottom: 1rem;
    display: block;
}


.btn-daftar {
    background-color: var(--primary-orange);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.6rem 3rem;
    border: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 6px rgba(242, 103, 34, 0.3);
}

.btn-daftar:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(242, 103, 34, 0.4);
    color: #ffffff;
}

.form-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 3.5rem;
    text-align: left;
    max-width: 850px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.form-card h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1F2228;
    margin-bottom: 0;
    text-transform: uppercase;
}

.form-card .divider {
    height: 1px;
    background-color: #718096;
    margin: 1.2rem 0 1.5rem 0;
    width: 100%;
}

/* Form Components */
.form-label-custom {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #3f4e41;
    /* Dark-ish olive green to gray */
    margin-bottom: 0;
    padding-right: 15px;
    word-break: break-word;
    display: flex;
    align-items: center;
    min-height: 38px;
    /* Alignment with input elements */
}

.form-control.input-approval {
    background-color: var(--input-gray);
    border: 1px solid #718096;
    color: #1a202c;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    height: 44px;
}

/* Editable Textarea */
.form-control.textarea-approval {
    background-color: #ffffff;
    border: 1px solid #718096;
    color: #1a202c;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.6;
}

.form-control.textarea-approval:focus {
    box-shadow: 0 0 0 0.25rem rgba(93, 117, 73, 0.25);
    border-color: #5d7549;
}


.form-control,
.form-select {
    border-color: #CBD5E0;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4A5568;
    height: 42px;
    min-height: 38px;
    /* Consistency */
}

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(242, 103, 34, 0.25);
    border-color: var(--primary-orange);
}

.form-control::placeholder,
.form-select {
    color: #A0AEC0;
    font-style: italic;
    font-weight: 500;
}

.input-group-text.bg-white {
    background-color: white;
    border-color: #CBD5E0;
    color: #1F2228;
    font-weight: 600;
    font-size: 0.95rem;
    border-right: none;
}

.input-with-icon {
    border-left: none;
}

/* Fix the input focus overriding the border of the input group text */
.input-group-text.bg-white {
    border-right: 1px solid #CBD5E0;
}

.input-group>.input-with-icon {
    border-left: none;
}

.btn-invalid-icon {
    color: #F56565;
    font-size: 1.6rem;
    line-height: 1;
    display: flex;
    align-items: center;
}

.btn-verifikasi {
    border: 2px solid #5da566;
    /* Match design green outline */
    color: #5da566;
    background-color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0 1.2rem;
    height: 42px;
    border-radius: 4px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-verifikasi:hover {
    background-color: #5da566;
    color: white;
}

.btn-submit {
    background-color: #A0AEC0;
    /* Grayed out style */
    color: white;
    font-weight: 700;
    padding: 0.6rem 2.5rem;
    border-radius: 6px;
    border: none;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.btn-submit i {
    margin-right: 0.4rem;
}

.btn-submit.active-submit {
    background-color: var(--primary-orange);
    cursor: pointer;
}

.btn-submit.active-submit:hover {
    background-color: var(--primary-orange-hover);
}

.btn-action-container {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.btn-reject {
    background-color: #E24C4B;
    /* Muted Red */
    color: white;
    font-weight: 700;
    padding: 0.6rem 2rem;
    border-radius: 6px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-reject i {
    margin-right: 0.5rem;
}

.btn-reject:hover {
    background-color: #C53030;
    color: white;
}

.btn-approve {
    background-color: #4C7745;
    /* Dark Green */
    color: white;
    font-weight: 700;
    padding: 0.6rem 2rem;
    border-radius: 6px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.btn-approve i {
    margin-right: 0.5rem;
}

.btn-approve:hover {
    background-color: #3b5c35;
    color: white;
}


.bottom-divider {
    height: 1px;
    background-color: #CBD5E0;
}

.footer-text {
    font-size: 0.75rem;
    color: #718096;
    line-height: 1.7;
    text-align: left;
    margin-bottom: 0;
}

.brand-container {
    display: flex;
    align-items: baseline;
}

.brand-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--sta-green);
    margin-left: 0.3rem;
    letter-spacing: 0px;
}

.nav-links {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link-green {
    color: var(--sta-green);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link-green:hover {
    color: #3b5c35;
}

.login-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem 3rem;
    text-align: left;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Logo Configuration */
.logo-container {
    text-align: center;
    margin-bottom: 0.8rem;
}

.logo-svg {
    vertical-align: middle;
    margin-right: 0.2rem;
}

.logo-text-wrapper {
    display: inline-block;
    vertical-align: middle;
    text-align: left;
    line-height: 1;
}

.logo-main-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #4a5568;
}

.logo-sub-text {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #718096;
    letter-spacing: 0.5px;
}

/* Form Configuration */
.login-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #2D3748;
    margin-bottom: 0.4rem;
    display: block;
}

.login-input {
    border: 1px solid #E2E8F0;
    background-color: #F8FAFC;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: #4A5568;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-input:focus {
    outline: none;
    border-color: var(--sta-green);
    box-shadow: 0 0 0 3px rgba(76, 119, 69, 0.15);
    background-color: #ffffff;
}

.login-input::placeholder {
    color: #A0AEC0;
    font-weight: 500;
}

/* Action Buttons */
.login-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.8rem;
}

.btn-masuk {
    background-color: var(--primary-orange);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.65rem 2.2rem;
    border-radius: 6px;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(242, 103, 34, 0.2);
}

.btn-masuk:hover {
    background-color: var(--primary-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(242, 103, 34, 0.3);
    color: white;
}

.forgot-link {
    color: #2B6CB0;
    /* Calm Blue */
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    transition: color 0.2s;
}

.forgot-link:hover {
    color: #1A365D;
    text-decoration: underline;
}

.page-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0;
    letter-spacing: 0px;
}

.header-right-text {
    font-size: 0.95rem;
    color: #4A5568;
    font-weight: 500;
}

.header-right-text b {
    color: var(--text-dark);
    font-weight: 700;
    margin-right: 0.5rem;
}

.main-divider {
    height: 2px;
    background-color: #1F2228;
    margin: 0 2rem 2rem 2rem;
}

/* Form Layout */
.form-area {
    flex-grow: 1;
    padding: 0 2.5rem 3rem 2.5rem;
}

.form-control.bg-light-gray {
    background-color: #F8FAFC;
}

/* Radio Buttons */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.15em;
}

.custom-radio-orange .form-check-input:checked {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Upload Button */
.btn-upload {
    background-color: var(--btn-green);
    color: white;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0 1.2rem;
    height: 38px;
    border-radius: 4px;
    border: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s;
}

.btn-upload:hover {
    background-color: #3b5a32;
    color: white;
}

/* Submit Button */
.btn-simpan {
    background-color: var(--primary-orange);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 2.5rem;
    border-radius: 6px;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(242, 103, 34, 0.2);
    float: right;
    margin-top: 1rem;
}

.btn-simpan:hover {
    background-color: var(--primary-orange-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(242, 103, 34, 0.3);
}

/* Footer Section inside Hero */
.hero-footer {
    position: relative;
    z-index: 10;
    padding: 2rem;
    color: #F7FAFC;
}

.footer-col {
    margin-bottom: 1rem;
}

.footer-col h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.footer-col h5 span {
    border-bottom: 2px solid #EC6F3A;
}

.footer-col p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 0.2rem;
    color: #E2E8F0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .hero-section {
        margin: 1rem;
    }

    .hero-footer {
        padding: 1.5rem;
        background-color: rgba(0, 0, 0, 0.6);
        /* more solid background on mobile */
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .footer-col {
        margin-bottom: 2rem;
    }

    .footer-col:last-child {
        margin-bottom: 0;
    }

    .info-card {
        max-width: 90%;
    }

}

@media (max-width: 768px) {
    body {
        padding: 0;
        background-color: #ffffff;
    }


    .main-container {
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .header {
        flex-direction: column;
        padding: 1.5rem 1rem;
        margin: 0;
    }

    .brand {
        margin-bottom: 1rem;
    }

    .hero-section {
        border-radius: 0;
        margin: 0;
    }

    .hero-overlay-bottom {
        border-radius: 0;
    }

    .info-card {
        padding: 2rem 1.5rem;
    }

    .hero-footer {
        border-radius: 0;
    }
}