@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, rgba(44, 122, 158, 0.85), rgba(26, 77, 102, 0.85)),
    url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwMCIgaGVpZ2h0PSIxMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9IiMyYzdhOWUiLz48L3N2Zz4=');
    background-image: linear-gradient(135deg, rgba(44, 122, 158, 0.85), rgba(26, 77, 102, 0.85)),
    url('PATTO.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Poppins", sans-serif;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('PATTO.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(8px);
    z-index: -1;
}

/* Wrapper */
.login-wrap {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 28px;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 8px;
}

.logo h1 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.logo p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    margin-top: 4px;
}

/* Card */
.card {
    border-radius: 15px;
    transition: transform 0.2s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #4db8e8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 32px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(77, 184, 232, 0.3);
}

.card h2 {
    color: #1a4d66;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.card .sub {
    color: #5a8fa8;
    font-size: 0.83rem;
    margin-bottom: 24px;
}

/* Error box */
.error-box {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Form */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-weight: 500;
    color: #1a4d66;
    font-size: 0.82rem;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.input-wrap i.bi-person-fill,
.input-wrap i.bi-lock-fill {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4db8e8;
    font-size: 1rem;
}

input {
    width: 100%;
    padding: 12px 14px 12px 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #4db8e8;
    border-radius: 8px;
    color: #1a4d66;
    font-size: 0.9rem;
    font-family: "Poppins", sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus {
    border-color: #f5a623;
    box-shadow: 0 0 0 0.2rem rgba(245, 166, 35, 0.25);
    background: #ffffff;
}

input::placeholder {
    color: #a0bfcf;
}

.toggle-pw {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #4db8e8;
    cursor: pointer;
    font-size: 1rem;
}

.toggle-pw:hover {
    color: #2c7a9e;
}

/* Button */
.btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #4db8e8, #2c7a9e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    margin-top: 6px;
}

.btn:hover {
    background: linear-gradient(135deg, #f5a623, #e89b1f);
    transform: scale(1.02);
}

/* Back link */
.back-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
}

.back-link a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.back-link a:hover {
    text-decoration: underline;
    color: #f5a623;
}

/* Responsive */
@media (max-width: 768px) {
    .card {
        padding: 20px;
    }
}