/* ===================================================================
   WCA 2026 — Back-Office login page
   Centered card on a WCA-purple gradient with floating bubbles.
   =================================================================== */
@import url(https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600);

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrapper {
    background: #84277c;
    background: linear-gradient(135deg, #84277c 0%, #bb7db5 100%);
    position: fixed;
    inset: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

/* ---------- The login card ---------- */
.login-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.login-card-accent {
    height: 6px;
    background: linear-gradient(90deg, #84277c 0%, #bb7db5 100%);
}

.login-card-logo {
    padding: 36px 32px 12px 32px;
    text-align: center;
    background: white;
}

.login-card-logo img {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.login-card-body {
    padding: 8px 36px 36px 36px;
    text-align: center;
}

.login-card-body h1 {
    margin: 0 0 4px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #2a2a2a;
}

.login-card-body .subtitle {
    margin: 0 0 24px 0;
    font-size: 0.95em;
    color: #888;
    font-weight: 300;
}

/* Reset the legacy absolute-positioned form layout */
.login-card-body form {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    text-align: center;
    font-size: 1em;
}

.login-card-body .form-row {
    margin-bottom: 14px;
    text-align: left;
}

/* ---------- Inputs ---------- */
.login-card-body input,
.login-card-body input.form-control {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    background-color: #f7f7f7;
    color: #2a2a2a;
    font-size: 1em;
    font-weight: 400;
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
    margin: 0;
}

.login-card-body input:focus,
.login-card-body input.form-control:focus {
    outline: none;
    border-color: #84277c;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(132, 39, 124, 0.12);
    color: #2a2a2a;
    width: 100%;
}

.login-card-body input::placeholder { color: #aaa; }

.login-card-body input:hover {
    background-color: #f1f1f1;
}

/* ---------- Validation messages ---------- */
.login-card-body .text-danger {
    color: #d9534f;
    font-size: 0.85em;
    margin-top: 4px;
    text-align: left;
    display: block;
}

/* ---------- Button ---------- */
.btn-login {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #84277c 0%, #6b1f66 100%);
    color: white;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 6px 16px rgba(132, 39, 124, 0.32);
    appearance: none;
    -webkit-appearance: none;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(132, 39, 124, 0.42);
    background: linear-gradient(135deg, #93308b 0%, #781e72 100%);
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(132, 39, 124, 0.32);
}

/* ---------- Decorative floating squares ---------- */
.bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    margin: 0;
    padding: 0;
}

.bg-bubbles li {
    position: absolute;
    list-style: none;
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.15);
    bottom: -160px;
    -webkit-animation: square 25s infinite;
    animation: square 25s infinite;
    -webkit-transition-timing-function: linear;
    transition-timing-function: linear;
}

.bg-bubbles li:nth-child(1) { left: 10%; }
.bg-bubbles li:nth-child(2) { left: 20%; width: 80px; height: 80px; animation-delay: 2s; animation-duration: 17s; }
.bg-bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; }
.bg-bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-duration: 22s; background-color: rgba(255, 255, 255, 0.25); }
.bg-bubbles li:nth-child(5) { left: 70%; }
.bg-bubbles li:nth-child(6) { left: 80%; width: 120px; height: 120px; animation-delay: 3s; background-color: rgba(255, 255, 255, 0.2); }
.bg-bubbles li:nth-child(7) { left: 32%; width: 160px; height: 160px; animation-delay: 7s; }
.bg-bubbles li:nth-child(8) { left: 55%; width: 20px; height: 20px; animation-delay: 15s; animation-duration: 40s; }
.bg-bubbles li:nth-child(9) { left: 25%; width: 10px; height: 10px; animation-delay: 2s; animation-duration: 40s; background-color: rgba(255, 255, 255, 0.3); }
.bg-bubbles li:nth-child(10) { left: 90%; width: 160px; height: 160px; animation-delay: 11s; }

@-webkit-keyframes square {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-1000%) rotate(600deg); }
}

@keyframes square {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-1000%) rotate(600deg); }
}

/* ---------- Responsive ---------- */
@media (max-width: 500px) {
    .wrapper { padding: 16px; }
    .login-card-logo { padding: 28px 24px 8px 24px; }
    .login-card-logo img { max-width: 220px; }
    .login-card-body { padding: 8px 24px 28px 24px; }
    .login-card-body h1 { font-size: 1.3em; }
}

