* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

html, body {
    margin: 0;
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
}

/* ── Full-page background ── */
body {
    background-image: url('../images/ptta_logo.png');
    background-size: cover;
    background-position: center left;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    background-color: #1a1a2e;
}

/* Dark overlay over entire page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 25, 0.65) 0%, rgba(20, 30, 60, 0.75) 100%);
    z-index: 0;
}

/* ── Topbar ── */
.topbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 18px 48px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-image {
    height: 56px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-weight: 800;
    font-size: 22px;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.logo-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    margin-top: 2px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ── Main Container ── */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.login-wrapper {
    width: 100%;
    max-width: 440px;
}

/* ── Card ── */
.card {
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 20px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: slideUp 0.6s ease-out;
}

h2 {
    text-align: center;
    margin: 0 0 8px 0;
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.desc {
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.70);
    margin-bottom: 32px;
    font-weight: 500;
}

/* ── Form Group ── */
.form-group {
    margin-bottom: 20px;
}

label {
    font-size: 12px;
    margin-bottom: 8px;
    display: block;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

input[type="email"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

input[type="email"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

input[type="email"].is-invalid,
input[type="password"].is-invalid {
    border-color: #f87171;
}

input[type="email"].is-invalid:focus,
input[type="password"].is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.15);
}

/* ── Error Messages ── */
.error-message {
    display: block;
    color: #fca5a5;
    font-size: 13px;
    margin-top: 6px;
    font-weight: 600;
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.2);
    color: #fca5a5;
    border-color: #f87171;
}

.alert-danger p { margin: 4px 0; }

.alert-success {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border-color: #4ade80;
}

/* ── Form Options ── */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 28px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.remember {
    font-size: 14px;
    display: flex;
    align-items: center;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    user-select: none;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    margin-right: 8px;
    accent-color: #60a5fa;
}

.remember:hover span { color: #ffffff; }

.forgot-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Login Button ── */
.btn-login {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.40);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: 50px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.55);
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

/* ── Divider ── */
.divider {
    margin: 28px 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

/* ── Sign Up Section ── */
.signup-section {
    text-align: center;
}

.signup-section p {
    color: rgba(255, 255, 255, 0.60);
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.signup-link {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: all 0.2s ease;
}

.signup-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ── Footer ── */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    padding: 18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.footer p { margin: 0; }

/* ── Animation ── */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .topbar { padding: 16px 24px; }
    .logo-image { height: 44px; }
    .logo-main { font-size: 20px; }
    .container { padding: 40px 16px; }
    .card { padding: 36px 28px; }
    h2 { font-size: 26px; }
    .form-options { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .topbar { padding: 14px 16px; }
    .logo-image { height: 36px; }
    .logo-main { font-size: 17px; }
    .logo-subtitle { font-size: 10px; }
    .card { padding: 28px 20px; border-radius: 14px; }
    h2 { font-size: 22px; }
    .btn-login { font-size: 14px; }
    .footer { font-size: 12px; }
}
