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

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html,
body {
    height: 100%
}

body {
    font-family: "Open Sans", sans-serif;
    display: grid;
    place-items: center;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    color: #111827;
    padding: 0 10px;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 800px at 50% 45%, rgba(0, 0, 0, .06), transparent 60%),
        radial-gradient(900px 600px at 85% 15%, rgba(59, 130, 246, .08), transparent 60%),
        radial-gradient(700px 500px at 20% 90%, rgba(236, 72, 153, .07), transparent 60%),
        linear-gradient(135deg, #f7fafc 0%, #e5e7eb 100%);
    background-blend-mode: multiply, screen, screen, normal;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: url("/media/login/logo-wild-rift.png") center center / clamp(560px, 60vw, 1250px) no-repeat;
    opacity: .19;
    filter: saturate(1.05) contrast(1.05);
}

.wrapper {
    width: min(92vw, 520px);
    border-radius: 18px;
    padding: 34px 32px 26px;
    text-align: center;
    background: rgb(255 255 255 / 0%);
    border: 1px solid rgb(255 255 255 / 98%);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
    box-shadow: 0 30px 80px rgb(2 6 23 / 10%), 0 12px 24px rgba(2, 6, 23, .08);
}

form {
    display: flex;
    flex-direction: column
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #0f172a
}

.input-field {
    position: relative;
    border-bottom: 2px solid rgba(17, 24, 39, .25);
    margin: 18px 0
}

.input-field input {
    width: 100%;
    height: 44px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: #111827;
    -webkit-text-fill-color: #111827;
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    color: #111827;
    font-size: 16px;
    pointer-events: none;
    transition: .15s ease;
}

.input-field input:focus~label,
.input-field input:not(:placeholder-shown)~label,
.input-field input:-webkit-autofill~label,
.input-field.filled label {
    font-size: .8rem;
    top: 6px;
    transform: translateY(-100%);
}

.input-field input:-webkit-autofill {
    -webkit-text-fill-color: #111827;
    transition: background-color 9999s ease-in-out 0s;
}

.forget {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 22px 0 30px;
    color: #0f172a
}

#remember {
    accent-color: #111827
}

.forget label {
    display: flex;
    align-items: center;
    gap: 8px
}

.wrapper a {
    color: #1d4ed8;
    text-decoration: none
}

.wrapper a:hover {
    text-decoration: underline
}

button {
    background: #111827;
    color: #fff;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: .25s ease;
}

button:hover {
    background: #0b1220;
    border-color: #111827
}

.alert {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: .95rem;
    text-align: left
}

.alert-success {
    background: rgba(16, 185, 129, .12);
    border: 1px solid rgba(16, 185, 129, .4);
    color: #065f46
}

.alert-danger {
    background: rgba(239, 68, 68, .12);
    border: 1px solid rgba(239, 68, 68, .4);
    color: #7f1d1d
}

@media (max-width:480px) {
    .wrapper {
        width: 100%;
        max-width: 520px
    }
}