/* assets/css/login-style.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
    --primary-color: #0d6efd;
    --primary-hover: #0b5ed7;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --white: #ffffff;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
    overflow: hidden; /* Mencegah scroll saat animasi */
}

/* Efek background animasi gradien */
body::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1), rgba(255, 255, 255, 0) 60%);
    transform-origin: center;
    animation: rotateBackground 20s linear infinite;
    z-index: -1;
}

@keyframes rotateBackground {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.login-wrapper {
    max-width: 420px;
    width: 100%;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header .logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.login-header .logo i {
    margin-right: 0.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group .form-control {
    width: 100%;
    padding: 12px 12px 12px 40px; /* Padding untuk ikon */
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

.input-group .input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.input-group .form-control:focus ~ .input-icon {
    color: var(--primary-color);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-login:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.login-footer a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.alert {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* assets/css/login-style.css */

/* === TAMBAHAN UNTUK KOTAK INPUT KODE VERIFIKASI === */
.verification-code-container {
    display: flex;
    justify-content: center;
    gap: 10px; /* Jarak antar kotak */
    margin: 2rem 0;
}

.verification-code-input {
    width: 45px;
    height: 55px;
    font-size: 1.5rem;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    -moz-appearance: textfield; /* Firefox */
}

.verification-code-input::-webkit-outer-spin-button,
.verification-code-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.verification-code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
}

/* Sembunyikan tombol verifikasi awal */
#submit-button {
    display: none;
}