/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

/* === Background === */
.background-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.background-image {
    position: absolute;
    inset: 0;
    background: url('../images/1.jpg') no-repeat center center;
    background-size: cover;
    filter: blur(3px);
    z-index: 1;
}

.background-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* === Login Form Wrapper === */
.form-wrapper {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* === Login Card === */
.login-card {
    width: 100%;
    max-width: 400px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: saturate(180%) blur(10px);
}

/* === Branding Header === */
.brand-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.brand-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
}

.signin-text {
    font-size: 1rem;
    color: #4a5568;
    margin-top: 0.25rem;
}

/* === Form === */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-form > div {
    display: flex;
    flex-direction: column;
}

.login-form label {
    font-size: 0.875rem;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

input[type="email"],
input[type="text"],
input[type="password"],
input.form-input {
    width: 100%;
    height: 44px;
    padding: 0.625rem 0.75rem;
    padding-right: 2.5rem;
    border: 1px solid #cbd5e0;
    border-radius: 0.375rem;
    font-size: 1rem;
    background-color: #ffffff;
}

input:focus {
    border-color: #4299e1;
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.3);
    outline: none;
}

/* === Toggle Password Icon === */
.password-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1rem;
    color: #4a5568;
    z-index: 10;
}

.toggle-password:hover {
    color: #2b6cb0;
}

/* === Footer === */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Tombol Dasar === */
.submit-button {
    padding: 0.75rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    text-align: center;
    display: inline-block;
    width: 100%;
    color: white;
}

/* === Warna Tombol Login Admin === */
.submit-button.login-admin-button {
    background-color: #4299e1;
}

.submit-button.login-admin-button:hover {
    background-color: #3182ce;
}

/* === Warna Tombol Login Mahasiswa === */
.submit-button.login-mahasiswa-button {
    background-color: #38a169;
}

.submit-button.login-mahasiswa-button:hover {
    background-color: #2f855a;
}

/* === Responsive === */
@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
    }

    .brand-header h2 {
        font-size: 1.5rem;
    }
}

/* === Dark Mode === */
@media (prefers-color-scheme: dark) {
    .login-card {
        background-color: rgba(30, 41, 59, 0.9);
    }

    .brand-header h2,
    .signin-text,
    .login-form label {
        color: #f1f5f9;
    }

    input[type="email"],
    input[type="text"],
    input[type="password"],
    input.form-input {
        background-color: #1e293b;
        color: #f1f5f9;
        border: 1px solid #475569;
    }

    .submit-button.login-admin-button {
        background-color: #60a5fa;
        color: #1e293b;
    }

    .submit-button.login-admin-button:hover {
        background-color: #3b82f6;
    }

    .submit-button.login-mahasiswa-button {
        background-color: #48bb78;
        color: #1e293b;
    }

    .submit-button.login-mahasiswa-button:hover {
        background-color: #38a169;
    }
}
