:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --primary-light: #d6e2ea;
    --primary-pale: #f4f7fa;
    --secondary: #18bc9c;

    --white: #ffffff;
    --text-dark: #1f2d3a;
    --text-muted: #6c7a89;

    --gradient-primary: linear-gradient(
        135deg,
        #2c3e50 0%,
        #243342 50%,
        #1a252f 100%
    );
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Sans 3", sans-serif;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--primary-pale);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* cuma horizontal yang dikunci */
}

/* Navbar */
.navbar {
    background: var(--gradient-primary);
    padding: 0 40px;
    display: flex;
    align-items: center;
    height: 60px;
}

/* Layout */
.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

/* Card */
.auth-card {
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(44, 62, 80, 0.1);

    width: 100%;
    max-width: 400px;

    padding: 36px 36px 32px;
}

/* Logo */
.auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth-logo img {
    width: 82px;
    height: 82px;
    object-fit: cover;
}

/* Title */
.auth-card-title {
    text-align: center;
    font-family: "Playfair Display", serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);

    margin-bottom: 24px;
}

/* Alert */
.alert-error {
    text-align: center;
    background: #fdecea;

    color: #c0392b;

    padding: 12px 14px;
    border-radius: 6px;

    font-size: 13px;
    margin-bottom: 20px;
}

.alert-success {
    text-align: center;
    background: #d1f2eb;

    color: #0f6e56;

    padding: 12px 14px;
    border-radius: 6px;

    font-size: 13px;
    margin-bottom: 20px;

    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.5px;

    color: var(--primary);

    margin-bottom: 6px;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    cursor: pointer;

    color: #7f8c8d;
    font-size: 15px;
}

/* Input */
.form-input {
    width: 100%;

    padding: 10px 42px 10px 13px;

    font-size: 14px;
    font-family: "Source Sans 3", sans-serif;

    color: var(--text-dark);

    background: var(--primary-pale);

    border: 1.5px solid var(--primary-light);
    border-radius: 4px;

    outline: none;

    transition:
        border-color 0.2s,
        background 0.2s;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--white);
}

.form-input.is-invalid {
    border-color: #e74c3c;
}

.form-input::placeholder {
    color: #aab3bc;
}

.invalid-feedback {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
}

/* Remember */
.form-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 22px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 7px;
}

.form-check input[type="checkbox"] {
    width: 14px;
    height: 14px;

    accent-color: var(--primary);

    cursor: pointer;
}

.form-check label {
    font-size: 13px;
    color: var(--text-muted);

    cursor: pointer;
}

/* Button */
.btn-primary {
    width: 100%;

    background: var(--primary);
    color: var(--white);

    border: none;
    border-radius: 4px;

    padding: 12px;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

/* Links */
.auth-links {
    margin-top: 22px;

    text-align: center;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

.link-forgot {
    font-size: 13px;
    font-weight: 600;

    color: var(--secondary);

    text-decoration: none;
}

.link-forgot:hover {
    text-decoration: underline;
}

.auth-register {
    font-size: 13px;
    color: var(--text-muted);
}

.auth-register a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.auth-register a:hover {
    text-decoration: underline;
}

.auth-home-link {
    font-size: 12px;
    color: var(--text-muted);

    text-decoration: none;

    opacity: 0.85;

    transition: opacity 0.2s ease;
}

.auth-home-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Copyright */
.copyright {
    margin-top: 18px;
    padding-top: 14px;

    border-top: 1px solid var(--primary-light);

    text-align: center;
    font-size: 11px;

    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 480px) {

    .auth-card {
        padding: 28px 20px 24px;
    }

    .navbar {
        padding: 0 20px;
    }
}