/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    background-color: #f0f2f5;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    position: relative;
    overflow: hidden;
}

/* Background Image */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/1.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(3px);
    z-index: -2;
}

/* Optional Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(240, 242, 245, 0.2);
    z-index: -1;
}

/* Centering Card */
.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

/* Login Card */
.login-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    width: 100%;
    max-width: 420px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-card:hover {
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

/* Foto Avatar */
.login-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #28a745;
    margin-bottom: 0.75rem;
}

/* Header */
.login-icon {
    font-size: 3.5rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.login-card h3 {
    font-weight: 600;
    color: #333333;
    margin-bottom: 1.5rem;
}

/* Form Elements */
.form-label {
    font-weight: 500;
    color: #444;
}

.form-control {
    border-radius: 8px;
    padding: 0.65rem;
    border: 1px solid #ced4da;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.15rem rgba(40, 167, 69, 0.25);
}

/* Button */
.btn-success {
    background-color: #28a745;
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 500;
    width: 100%;
    transition: background-color 0.3s;
    color: #fff;
}

.btn-success:hover {
    background-color: #218869;
}

/* Alert */
.alert-danger {
    font-size: 0.9rem;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border-radius: 8px;
}

/* Toggle password button */
.input-group .btn-outline-secondary {
    border-radius: 0 8px 8px 0;
    border-color: #ced4da;
}

.input-group .btn-outline-secondary:hover {
    background-color: #e9ecef;
}

/* Responsive tweaks */
@media (max-width: 375px) {
    .login-card {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .login-avatar {
        width: 60px;
        height: 60px;
    }

    .login-card h3 {
        font-size: 1.3rem;
    }

    .form-control,
    .btn-success {
        font-size: 0.95rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .alert-danger {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}
