/* General settings */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #303030;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

/* Centered page */
.page {
    position: relative;
    z-index: 1;
    width: min(100% - 40px, 460px);
    margin: 0 auto;
    padding: 36px 0;
}

/* Website logo */
.brand {
    text-align: center;
    margin-bottom: 24px;
}

.logo {
    width: 60px;
    height: 60px;
    fill: none;
    stroke: #374BE6;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand p {
    margin: 10px 0 0;
    font-size: 22px;
    font-weight: bold;
}

/* Login card */
.login-card {
    padding: 32px;
    border: 1px solid #707070;
    border-radius: 20px;
    background: #303030;
}

h1 {
    margin: 0;
    text-align: center;
    font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
    font-size: 42px;
    letter-spacing: -1px;
    line-height: 1.15;
}

.subtitle {
    margin: 12px 0 30px;
    text-align: center;
    color: #dddddd;
    font-size: 15px;
}

/* Input fields */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

input {
    width: 100%;
    height: 48px;
    margin-bottom: 20px;
    padding: 0 14px;
    border: 1px solid #929292;
    border-radius: 7px;
    background: #282828;
    color: white;
    font: inherit;
}

input::placeholder {
    color: #bcbcbc;
}

/* Shared button styles */
button {
    min-height: 46px;
    border: 1px solid #929292;
    border-radius: 7px;
    background: transparent;
    color: white;
    font: inherit;
    cursor: pointer;
}

button:hover {
    background: #3c3c3c;
}

input:focus-visible,
button:focus-visible {
    outline: 2px solid #aab4ff;
    outline-offset: 4px;
}

/* Text buttons */
.text-button {
    min-height: 32px;
    padding: 0;
    border: 0;
    color: #b1bbff;
    font-size: 14px;
}

.text-button:hover {
    background: transparent;
    text-decoration: underline;
}

.forgot {
    display: block;
    margin: -10px 0 20px auto;
    color: #dddddd;
}

/* Main login button */
.primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 18px;
    background: #374BE6;
    border-color: #374BE6;
    font-weight: bold;
}

.primary:hover {
    background: #2e40cb;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 13px;
    color: #dddddd;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #707070;
}

/* Social buttons */
.social-buttons {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.social-buttons button,
.phone-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 6px;
}

.social-buttons button {
    font-size: 13px;
}

/* Google, Apple, Facebook and phone icons */
.button-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.phone-button {
    width: 100%;
    margin-top: 12px;
    font-size: 14px;
}

/* Bottom text */
.signup {
    margin: 24px 0 0;
    text-align: center;
    font-size: 14px;
}

.preview-note {
    margin: 16px 0 0;
    text-align: center;
    color: #bcbcbc;
    font-size: 12px;
}

/* Side decorations */
.side-art {
    position: fixed;
    top: 12vh;
    width: 23vw;
    height: 80vh;
    pointer-events: none;
    fill: white;
}

.ribbon {
    fill: none;
    stroke: #374BE6;
    stroke-width: 22;
    stroke-linecap: round;
}

.left {
    left: 0;
}

.right {
    right: 0;
    transform: scaleX(-1);
}

/* Smaller screens */
@media (max-width: 800px) {
    .side-art {
        display: none;
    }
}

@media (max-width: 420px) {
    .login-card {
        padding: 24px 18px;
    }

    h1 {
        font-size: 36px;
    }
}

@media (max-width: 380px) {
    .social-buttons {
        grid-template-columns: 1fr;
    }
}