:root {
    --brand-blue: #1c3a5e;
    --brand-blue-hover: #122844;
    --brand-blue-light: #eaf1f8;
    --brand-orange: #eb5e10;
    --green-primary: #198754;
    --red-danger: #dc3545;
    --text-muted: #6c757d;
    --text-main: #212529;
    --border-color: #dee2e6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--brand-blue-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

/* Wrapper to keep decorations strictly around the form */
.login-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

/* --- DECORATIVE ELEMENTS (Strictly around the form) --- */

/* 1. Top-Left Dots Grid */
.decor-dots-tl {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 0;
    opacity: 0.6;
}

/* 2. Bottom-Right Dots Grid */
.decor-dots-br {
    position: absolute;
    bottom: -10px;
    right: -10px;
    z-index: 0;
    opacity: 0.6;
}

/* 3. Middle-Right Soft Grey Hexagon */
.decor-hexa-mr {
    position: absolute;
    right: -40px;
    top: 25%;
    z-index: 0;
    opacity: 0.15;
    transform: rotate(15deg);
}

/* 4. Bottom-Left Solid Hexagon (oranye tetap dipakai sebagai aksen brand) */
.decor-hexa-bl {
    position: absolute;
    left: -35px;
    bottom: 20%;
    z-index: 0;
    opacity: 0.8;
    transform: rotate(-10deg);
    filter: drop-shadow(0 4px 10px rgba(235, 94, 16, 0.2));
}

/* --- LOGIN CARD --- */
.login-card {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    padding: 2.75rem 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
}

.brand-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1.25rem;
}

.brand-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}
.brand-text span {
    color: var(--brand-blue);
}

.login-subtitle {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin-bottom: 2.25rem;
    letter-spacing: -0.5px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.input-group:focus-within {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(28, 58, 94, 0.15);
}

.input-group-text {
    background-color: #ffffff;
    border: none;
    color: var(--text-muted);
    padding-left: 1.25rem;
    padding-right: 0.75rem;
}

.form-control {
    border: none;
    padding: 0.75rem 0.75rem 0.75rem 0.25rem;
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #ffffff;
}

.form-control:focus {
    box-shadow: none;
    background-color: #ffffff;
}

.password-toggle {
    cursor: pointer;
    background: #ffffff;
    border: none;
    color: var(--text-muted);
    padding-right: 1.25rem;
    display: flex;
    align-items: center;
}

.forgot-password-link {
    color: var(--brand-blue);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password-link:hover {
    color: var(--brand-blue-hover);
    text-decoration: underline;
}

.btn-submit {
    background-color: var(--brand-blue);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.85rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(28, 58, 94, 0.25);
}

.btn-submit:hover {
    background-color: var(--brand-blue-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(28, 58, 94, 0.35);
}

.custom-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 1.75rem 0;
}

.custom-divider::before, .custom-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.custom-divider:not(:empty)::before { margin-right: 1rem; }
.custom-divider:not(:empty)::after { margin-left: 1rem; }

.social-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn-social-login {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-social-login:hover {
    background: var(--brand-blue-light);
    border-color: var(--border-color);
}

.signup-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 2.25rem;
}

.signup-text a {
    color: var(--brand-blue);
    text-decoration: none;
    font-weight: 600;
}

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