* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Bottom-left background wave effect */
.bg-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, #036e1b 0%, #036e1b 100%);
    border-radius: 0 100% 0 0;
    opacity: 0.12;
    z-index: 0;
}

/* Top-Left Home Box */
.home-box {
    position: absolute;
    top: 35px;
    left: 35px;
    background: #036e1b;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(15, 81, 50, 0.25);
    transition: transform 0.2s, background-color 0.2s;
    z-index: 10;
}

.home-box:hover {
    background: #02751d;
    transform: translateY(-2px);
}

.home-icon {
    font-size: 22px;
    margin-bottom: 2px;
}

.home-text {
    font-size: 12px;
    font-weight: 600;
}

/* Main Container */
.login-container {
    width: 100%;
    max-width: 480px;
    padding: 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    background: #ffffff;
    padding: 40px 45px 35px 45px;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07);
    width: 100%;
}

/* Header & Logo */
.login-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-logo {
    font-size: 28px;
    font-weight: 800;
    color: #0F5132;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.brand-logo span {
    color: #198754;
}

.brand-logo-img {
    display: block;
    max-width: 220px;
    max-height: 64px;
    margin: 0 auto;
    object-fit: contain;
}

.brand-tagline {
    font-size: 11px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.login-header h2 {
    color: #212529;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.sub-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sub-title-wrapper .line {
    flex: 1;
    height: 1px;
    background-color: #dee2e6;
}

.sub-text {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* Alerts */
.error-alert {
    background-color: #f8d7da;
    color: #842029;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid #f5c2c7;
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: #333333;
    font-weight: 600;
    font-size: 13px;
}

.input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.field-icon {
    position: absolute;
    left: 14px;
    font-size: 14px;
    color: #6c757d;
}

.form-group input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: #fafbfc;
}

.form-group input:focus {
    border-color: #0F5132;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
}

.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-link {
    color: #0F5132;
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

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

/* Login Button */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #036e1b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s;
}

.btn-login:hover {
    background-color: #02751d;
}

.btn-arrow {
    font-size: 16px;
    font-weight: bold;
}

/* Secure Access Divider */
.secure-access-bar {
    margin: 24px 0 18px 0;
    text-align: center;
    position: relative;
}

.secure-access-bar::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e9ecef;
    z-index: 1;
}

.secure-access-bar span {
    position: relative;
    background: #ffffff;
    padding: 0 12px;
    font-size: 11px;
    color: #6c757d;
    font-weight: 500;
    z-index: 2;
}

/* Features Row */
.features-row {
    display: flex;
    justify-content: space-between;
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #f1f3f5;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feat-icon {
    font-size: 16px;
}

.feat-desc {
    display: flex;
    flex-direction: column;
}

.feat-desc strong {
    font-size: 11px;
    color: #212529;
    line-height: 1.2;
}

.feat-desc span {
    font-size: 10px;
    color: #6c757d;
    line-height: 1.2;
}

/* Footer */
.footer-credit {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
    color: #6c757d;
}

/* Responsive login layout */
.btn-login:disabled {
    cursor: wait;
    opacity: 0.78;
}

@media (max-width: 600px) {
    body {
        align-items: flex-start;
        overflow-y: auto;
    }

    .bg-wave {
        width: 260px;
        height: 260px;
    }

    .home-box {
        top: 16px;
        left: 16px;
        padding: 8px 11px;
        border-radius: 8px;
    }

    .home-icon {
        font-size: 16px;
    }

    .home-text {
        font-size: 10px;
    }

    .login-container {
        max-width: 100%;
        padding: 72px 14px 20px;
    }

    .login-card {
        padding: 28px 20px 24px;
        border-radius: 10px;
    }

    .login-header {
        margin-bottom: 20px;
    }

    .features-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .feature-item {
        padding: 3px 0;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding-inline: 16px;
    }

    .sub-title-wrapper {
        gap: 6px;
    }

    .sub-text {
        font-size: 11px;
    }
}
