/* ============================================
   SIGNIN.CSS - Halaman Login ProofSMS
   ============================================ */

/* ---------- RESET & GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
}

input, input *, textarea, textarea * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
}

/* ---------- BODY ---------- */
body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, .20), transparent 30%),
                radial-gradient(circle at bottom right, rgba(14, 165, 233, .18), transparent 28%),
                linear-gradient(135deg, #0f172a, #111827);
    padding: 20px;
}

/* ---------- CARD ---------- */
.card {
    width: 100%;
    max-width: 980px;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .28);
}

/* ---------- LEFT SIDE ---------- */
.left {
    width: 42%;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.left .logo {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 18px;
}

.left .logo i {
    margin-right: 10px;
}

.left p {
    line-height: 1.6;
    opacity: .95;
    max-width: 280px;
}

/* ---------- RIGHT SIDE ---------- */
.right {
    width: 58%;
    padding: 48px;
}

.right h2 {
    font-size: 32px;
    color: #111827;
    margin-bottom: 8px;
}

.right .sub {
    color: #6b7280;
    margin-bottom: 25px;
}

/* ---------- ALERT ---------- */
.alert {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* ---------- FORM ---------- */
.form-group {
    position: relative;
    margin-bottom: 16px;
}

.form-group input {
    width: 100%;
    height: 52px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 0 48px 0 46px;
    outline: none;
    font-size: 15px;
    transition: .25s;
    background: #fff;
}

.form-group input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.form-group .icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    font-size: 16px;
}

.form-group .toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6b7280;
    user-select: none;
    font-size: 16px;
}

.form-group .toggle:hover {
    color: #2563eb;
}

/* ---------- REMEMBER ME ---------- */
.remember-group {
    display: flex;
    align-items: center;
    margin: 6px 0 4px;
}

.remember-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.remember-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

/* ---------- FORGOT PASSWORD ---------- */
.forgot {
    display: block;
    text-align: right;
    text-decoration: none;
    color: #2563eb;
    font-size: 14px;
    margin: 4px 0 18px;
}

.forgot:hover {
    text-decoration: underline;
}

/* ---------- BUTTON ---------- */
.btn-primary {
    width: 100%;
    height: 52px;
    border: none;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: .25s;
    position: relative;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-primary:disabled {
    opacity: .85;
    cursor: not-allowed;
}

.btn-primary i {
    margin-right: 8px;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---------- SIGN UP LINK ---------- */
.signup {
    display: block;
    text-align: center;
    margin-top: 18px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 700;
}

.signup:hover {
    text-decoration: underline;
}

.signup i {
    margin-right: 5px;
}

/* ---------- ADMIN LINK ---------- */
.admin-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    text-decoration: none;
    color: #6b7280;
    font-size: 13px;
}

.admin-link:hover {
    color: #2563eb;
}

.admin-link i {
    margin-right: 5px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .card {
        flex-direction: column;
    }
    .left,
    .right {
        width: 100%;
    }
    .left {
        padding: 34px 24px;
    }
    .right {
        padding: 34px 24px;
    }
    .right h2 {
        text-align: center;
    }
    .right .sub {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .left .logo {
        font-size: 32px;
    }
    .right {
        padding: 25px 20px;
    }
    .right h2 {
        font-size: 24px;
    }
}