@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #67e8f9;
    --primary-light: rgba(103, 232, 249, 0.14);
    --bg-main: #05060f;
    --card-bg: #10152c;
    --text-dark: #e8ecff;
    --text-muted: #9aa3c7;
    --border: rgba(165, 180, 252, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Plus Jakarta Sans', sans-serif; }

body { 
    background-color: var(--bg-main); 
    color: var(--text-dark); 
    min-height: 100vh; 
    display: flex; 
    justify-content: center; 
    align-items: center;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 2rem;
}

.bento-card { 
    background: var(--card-bg); 
    padding: 2.5rem 2rem; 
    border: 1px solid var(--border);
    border-radius: 12px; 
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.logo-container { text-align: center; margin-bottom: 1.5rem; }
.logo-home-link { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.logo-img,
.brand-logo,
.app-logo,
.login-logo,
.auth-logo-img {
    max-height: 128px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.logo-home-link:hover .login-logo { opacity: 0.85; }

.auth-header { text-align: center; margin-bottom: 2rem; }
.auth-header h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-header p { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.text-dark { color: var(--text-dark); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }

.input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.input-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); text-transform: uppercase; letter-spacing: 0.5px;}

input {
    padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 6px; 
    width: 100%; outline: none; transition: 0.2s; font-family: inherit; font-size: 0.95rem;
    background-color: var(--bg-main); color: var(--text-dark);
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); background-color: white;}

.btn { padding: 0.8rem 1.2rem; border-radius: 6px; font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem; transition: 0.2s; display: inline-flex; align-items: center; justify-content: center;}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: #0369a1; transform: translateY(-1px); box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.2);}
.btn-full { width: 100%; }

.error-message { color: #ef4444; font-size: 0.85rem; text-align: center; font-weight: 600; opacity: 0; transition: opacity 0.3s; height: 15px; }

.auth-footer { margin-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

/* Shake Animation for Invalid Login */
.shake { animation: shake 0.4s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}