/* ===================== RESET ===================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Segoe UI", Tahoma, sans-serif;
}

/* ===================== BACKGROUND ===================== */
/* Warna disamakan dengan dashboard */
body {
    height: 100vh;
    background: linear-gradient(135deg, #3f7ea3, #2e5f7b);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================== WRAPPER ===================== */
.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===================== CARD ===================== */
.login-card {
    width: 380px;
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ===================== HEADER ===================== */
.title {
    color: #2e5f7b;
    font-weight: 600;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 13px;
    color: #6c757d;
}

/* ===================== FORM ===================== */
.mb-3 {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

.form-control {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 14px;
    transition: 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: #4B8FB4;
    box-shadow: 0 0 0 2px rgba(75,143,180,0.15);
}

/* ===================== PASSWORD TOGGLE ===================== */
.form-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 11px;
    cursor: pointer;
    font-size: 14px;
    color: #6c757d;
}

.toggle-password:hover {
    color: #2e5f7b;
}

/* ===================== LINK ===================== */
.forgot-link {
    font-size: 12px;
    text-decoration: none;
    color: #2e5f7b;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ===================== BUTTON ===================== */
.btn-login {
    width: 100%;
    height: 44px;
    background: #2e5f7b;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login:hover {
    background: #244d66;
}

/* ===================== MESSAGE (Alert PHP) ===================== */
.alert {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 15px;
}

.alert-danger {
    background: #fdecea;
    color: #b71c1c;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #e6f4ea;
    color: #2e7d32;
    border: 1px solid #c3e6cb;
}