/* login.php - Futuristic Apple UX */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

body { 
    background: #0f172a url('/css/webimg/login_background.png') no-repeat center center fixed; 
    background-size: cover;
    display: flex; justify-content: center; align-items: center; min-height: 100vh; 
    min-height: 100dvh;
    color: #ffffff;
}

body::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.6) 100%);
    pointer-events: none;
    z-index: 0;
}

.login-wrapper { 
    width: 100%; max-width: 600px; padding: 20px; 
    position: relative; z-index: 1; 
}

.login-container { 
    background: rgba(255, 255, 255, 0.06); 
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15); 
    position: relative; overflow: hidden;
}

.login-grid {
    display: block;
}

.form-section {
    flex: 1;
    padding: 45px 35px;
    text-align: center;
    position: relative;
}

.login-title { 
    color: #ffffff; font-size: 28px; font-weight: 700; margin-bottom: 5px; 
    letter-spacing: -0.5px; text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.login-subtitle { 
    color: rgba(255, 255, 255, 0.7); font-size: 15px; margin-bottom: 35px; 
}

.input-group { margin-bottom: 22px; text-align: left; position: relative; }
.input-group label { 
    display: block; color: rgba(255, 255, 255, 0.85); font-size: 13.5px; 
    font-weight: 500; margin-bottom: 8px; letter-spacing: 0.3px;
}
.input-group i { 
    position: absolute; left: 16px; top: 40px; color: rgba(255, 255, 255, 0.5); 
    font-size: 16px; transition: color 0.3s; 
}
.input-group input { 
    width: 100%; padding: 14px 15px 14px 44px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-radius: 12px; font-size: 15px; color: #ffffff; 
    transition: all 0.3s; background: rgba(0, 0, 0, 0.2);
}
.input-group input::placeholder { color: rgba(255, 255, 255, 0.3); }
.input-group input:focus { 
    border-color: rgba(255, 255, 255, 0.6); 
    background: rgba(0, 0, 0, 0.4); 
    outline: none; 
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1); 
}
.input-group:focus-within i { color: #ffffff; }

.form-switch-link { text-align: right; margin-bottom: 25px; margin-top: -8px; }
.form-switch-link a { 
    color: #38bdf8; font-size: 13.5px; font-weight: 500; 
    text-decoration: none; transition: all 0.3s; 
}
.form-switch-link a:hover { 
    color: #7dd3fc; text-decoration: underline; 
    text-shadow: 0 0 8px rgba(56,189,248,0.5); 
}

.submit-btn { 
    width: 100%; background: linear-gradient(135deg, #0ea5e9, #3b82f6); 
    color: #ffffff; border: none; padding: 16px; 
    border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; 
    transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; gap: 8px;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}
.submit-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 12px 25px rgba(14, 165, 233, 0.6); 
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
}
.submit-btn:active { transform: translateY(1px); box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3); }
.submit-btn:disabled { 
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); 
    cursor: not-allowed; transform: none; box-shadow: none; 
    border: 1px solid rgba(255,255,255,0.1); 
}

.login-footer { margin-top: 25px; font-size: 13px; color: rgba(255, 255, 255, 0.5); font-weight: 400; text-align: center; }
.hidden-form { display: none; }

/* Info Boxes for Glassmorphism */
.info-box { 
    background: rgba(255, 255, 255, 0.1); 
    color: #ffffff; padding: 14px 16px; border-radius: 12px; 
    font-size: 13.5px; margin-bottom: 22px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    border-left: 4px solid #38bdf8; text-align: left;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
#login2faForm .info-box { border-left-color: #60a5fa; }
#verifyForm .info-box { border-left-color: #34d399; }
#loginAccountPickForm .info-box { border-left-color: #818cf8; }

button#login2faResendBtn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: none;
}
button#login2faResendBtn:hover { background: rgba(255,255,255,0.2); }

.back-link {
    color: rgba(255,255,255,0.7); text-decoration: none; 
    transition: color 0.3s; font-weight: 500; font-size: 13.5px;
}
.back-link:hover { color: #ffffff; text-decoration: underline; }

.login-qr-info-band {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #ffffff;
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid rgba(52, 211, 153, 0.35);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.login-qr-info-band:hover {
    background: rgba(52, 211, 153, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);
}
.login-qr-info-band__icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 18px;
}
.login-qr-info-band__copy {
    flex: 1;
    text-align: left;
    line-height: 1.35;
}
.login-qr-info-band__copy strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.login-qr-info-band__copy small {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
}
.login-qr-info-band__arrow {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
}

/* Account List items */
#loginAccountList .account-item {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    padding: 14px 16px; border-radius: 12px; color: #fff;
    cursor: pointer; transition: all 0.3s; text-align: left;
}
#loginAccountList .account-item:hover {
    background: rgba(255,255,255,0.2); transform: translateY(-1px);
}

/* ---- Mobil ---- */
.login-legal-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    margin-top: 14px;
    padding: 0 12px 8px;
    font-size: 12px;
}
.login-legal-foot a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}
.login-legal-foot a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.login-legal-foot span {
    color: rgba(255, 255, 255, 0.35);
}

.serica-cerez-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    max-width: 920px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 23, 42, 0.94);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.92);
}
.serica-cerez-bar__text { flex: 1 1 240px; line-height: 1.5; margin: 0; }
.serica-cerez-bar__text a { color: #34d399; text-decoration: none; }
.serica-cerez-bar__text a:hover { text-decoration: underline; }
.serica-cerez-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 0 0 auto;
}
.serica-cerez-bar__btn {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.serica-cerez-bar__btn:hover { border-color: rgba(255, 255, 255, 0.45); }
.serica-cerez-bar__btn--primary {
    background: #0682b4;
    border-color: #0682b4;
    color: #fff;
}
.serica-cerez-bar__btn--primary:hover { filter: brightness(1.08); }

@media (max-width: 767px) {
    .login-wrapper { padding: 14px; }
    .login-container { border-radius: 22px; }
    .form-section { padding: 32px 20px; }
    .login-title { font-size: 24px; }
    .login-subtitle { margin-bottom: 26px; }
    .login-qr-info-band { gap: 10px; padding: 12px 14px; }
    .login-qr-info-band__copy strong { font-size: 13px; }
    .serica-cerez-bar {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}
