@import url('https://fonts.googleapis.com/css?family=Open+Sans:300,400,600');

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
    background: #202020;
}

.login-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.login-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(to right, #292E49, #536976);
    opacity: 0.88;
}

.login-wrap {
    position: relative;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 45px 40px 40px;
    text-align: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.login-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.login-name {
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -1px;
}

.login-sub {
    margin: 10px 0 30px;
    color: #f0f0f0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

#form input {
    display: block;
    width: 100%;
    height: 50px;
    margin-bottom: 16px;
    padding: 0 20px;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    outline: none;
    transition: 0.4s;
}

#form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#form input:focus {
    background: rgba(255, 255, 255, 0.16);
    border-color: #29ca8e;
}

#form button {
    width: 100%;
    height: 50px;
    margin-top: 6px;
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    background: #29ca8e;
    border: 0;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.4s;
}

#form button:hover {
    background: #202020;
}

#msg {
    min-height: 22px;
    margin: 18px 0 0;
    color: #ff8f8f;
    font-size: 14px;
}

#form input.invalid,
#form input.invalid:focus {
    background: rgba(255, 90, 90, 0.14);
    border-color: #ff5a5a;
    animation: shake 0.20s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}
