body, html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

*, :not(i) {
    box-sizing: border-box;
    font-family: dirooz, 'Segoe UI', system-ui, sans-serif;
}

@font-face {
    font-family: dirooz;
    src: url('/Resources/fonts/Dirooz.ttf');
}

.floating-input {
    --pad: .75rem;
    position: relative;
}

    .floating-input > .form-input::placeholder {
        opacity: 0;
    }

    .floating-input > label {
        position: absolute;
        right: var(--pad);
        top: calc(var(--pad) - 3px);
        pointer-events: none;
        transition: transform 200ms;
        padding: 0 5px;
    }

    .floating-input [required] ~ label:after {
        content: ' *';
        color: red;
    }

.form-input {
    padding: var(--pad);
    border: 1px solid gray;
    border-radius: 10px;
    color: black;
    outline: none;
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

    .form-input:focus + label,
    .form-input:not(:placeholder-shown) + label {
        transform: translateY(calc(-50% - var(--pad) + 5px)) scale(.9) translateX(-8px);
        color: var(--accent);
        background-color: white;
    }

.login-button {
    border: 2px solid #007bff;
    border-radius: 15px;
    background-color: white;
    color: #007bff;
    font-size: 1.15rem;
    padding: .5rem 1rem;
    cursor: pointer;
    transition: color .1s, background-color .1s;
    display: block;
    width: 100%;
    margin-top: 1rem;
}

    .login-button:hover {
        background-color: #007bff;
        color: white;
    }

.resend-button {
    border: 2px solid black;
    border-radius: 15px;
    background-color: white;
    color: black;
    font-size: 1.15rem;
    padding: .5rem 1rem;
    cursor: pointer;
    transition: color .1s, background-color .1s;
    display: block;
    width: 100%;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
}

    .resend-button svg {
        transition: fill .1s;
        fill: black;
    }

    .resend-button:hover {
        background-color: black;
        color: white;
    }

    .resend-button:hover svg {
        fill: white;
    }

.title-paragraph {
    text-align: center;
    color: #000;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}

.login-panel {
    margin: auto;
    min-width: 350px;
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    border: 2px solid #007bff;
    max-width: 300px;
}

.info-text {
    text-align: center;
}

.danger-alert {
    color: red;
    display: block;
    margin-bottom: 1rem;
    text-align: center;
}

/* Display Name : Profile image */
.profile-image-setting {
    position: relative;
    display: grid;
    place-items: center;
}

.profile-image-setting img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.profile-image-setting img:hover + .add-image-overlay {
    display: grid;
}

.add-image-overlay {
    background: #00000040;
    width: 100%;
    height:100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    display: none;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    color: #ffffffbc;
    font-size: 3rem;
    place-items: center;
    cursor: pointer
}

    .add-image-overlay:hover {
        display: grid;
    }
