﻿.page {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
main {
    overflow: auto;
    min-width: min(100vw, 500px);
    max-width: clamp(40rem,40vw + 10rem,80rem);
    height: 100%
}

.scroll-container {
    min-height: 100%;
    width:100%;
    display: grid;
    place-items: center;
}

.form-container {
    display: flex;
    justify-content: center;
    color: var(--secondary-text-color);
}
.vertical-form {
    max-width:100%;
    padding: 3rem;
    padding-inline: clamp(1rem, 8vw , 16rem);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1.4rem;
    text-align: center;
    /*@media (max-width: 900px) {
        padding: 2rem 0rem;
    }*/
}

/* Logo */
    .vertical-form .logo img {
        display: block;
        max-height: 8rem;
        max-width: 22rem;
        margin-bottom:0.5rem;
        width: 100%;
        height: auto;
    }

/* Headline */
h1 {
    font-weight: 700;
    font-size: 3rem;
    margin-bottom: 0.5rem;
}
h2 {
    font-weight: 600;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

/* Picker */
.picker {
    display: flex;
    position: relative;
    align-items: center;
    background: #dfdfdf;
}

/* Options */
.picker-option {
    flex: 1;
    color: var(--secondary-text-color);
    padding: 0.5rem 0.8rem;
    border: none;
    background: transparent;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    min-width: 7rem;
    z-index: 1;
}

    /* Active / selected (outset look) */
    .picker-option.active {
        background: #f1f1f1;
        position:relative;
        bottom: 0.08rem;
        left: 0.08rem;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 4px rgba(0, 0, 0, 0.15);
    }

/* Separator */
.picker-separator {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0%;
    width: 0;
    border-left: 2px dotted #f1f1f1;
    pointer-events: none;
}
/* Fields */
.field-label {
    color: var(--secondary-text-color);
    font-size: 0.9rem;
    text-align:start;
}

.line-input {
    border: none;
    flex: 1 1 auto;
    padding: 0.4rem 0;
    outline: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--secondary-text-color);
}
.form-underline{
    border-bottom: 2px solid var(--secondary-text-color);
}

/* Password */
.input-line {
    display: flex;
    align-items: center;
}


.input-icon {
    border: none;
    height: 2.3rem;
    margin-right:0.5rem;
    align-items:center;
    width: 2.3rem;
    background: none;
    cursor: pointer;
    font-size:1.5rem;
    display:flex;
    padding-bottom:0.3rem;
}
.input-icon img{
    height:100%;
    width:100%;
    flex: 1 1 auto;
}

.full-row {
    display: flex;
    flex: 1 1 auto;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    width: 100%
}

.input-field {
    display: flex;
    flex-direction: column;
    width: 100%
}

    .input-field label {
        font-size: 1.5rem;
        font-weight: 700;
    }
/* Remember / forgot */


/* Checkbox label */
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    color: #272727;
    font-size: 0.9rem;
}

    /* Custom checkbox */
    .checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        width: 20px;
        height: 20px;
        border: 3px solid #272727;
        border-radius: 0; /* hard edges */

        background: #fff;
        cursor: pointer;
        display: grid;
        place-content: center;
    }

        /* Checked state */
        .checkbox input[type="checkbox"]:checked {
            background: #c40000; /* red when ticked */
            border-color: #c40000;
        }

        /* Checkmark */
        .checkbox input[type="checkbox"]::after {
            content: "";
            width: 8px;
            height: 12px;
            border-right: 3px solid white;
            border-bottom: 3px solid white;
            transform: rotate(45deg) translate(-1px,-1px);
            opacity: 0;
        }

        /* Show checkmark when checked */
        .checkbox input[type="checkbox"]:checked::after {
            opacity: 1;
        }

        .checkbox input[type="checkbox"]:hover {
            box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
        }


.forgot-my-elden-button {
    font-size: 0.85rem;
    color: var(--secondary-text-color);
    text-decoration: none;
}

/* Actions */
.actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
}

.button{
    flex: 1;
    padding: 0.75rem;
    display:flex;
    justify-content:center;
    align-items:center;
    border: none;
    gap:1rem;
    cursor: pointer;
    font-weight:700;
    font-size: 1.5rem;
    border-radius:0;
    text-decoration:none;
}

    .button.black {
        background: #000;
        color: #fff;
    }
    .button.color-primary {
        background: var(--brand-color-primary);
        color: var(--brand-color-contrast);
    }
    .button.gray {
        background: #dfdfdf;
        color: #6e6e6e;
    }
.button:disabled{
    pointer-events:none;
    opacity: 0.95;
}

/* Footer */
.footer {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
}

    .footer img {
        height: 1rem;
        opacity: 0.7;
    }

.line-break {
    height: 1px;
    width:5rem;
    border-bottom: 1px dotted var(--secondary-text-color);
}

.popup-button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between; /* space between buttons */
    align-items: stretch;
    gap: 1rem; /* consistent spacing */
    width: 100%;
}

    .popup-button-row .button {
        min-width: 6rem;
    }
