@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

/* Animations */
@keyframes fadeInDown {
    from {
        transform: translateX(50px) translateY(0) rotate(45deg);
        opacity: 0.0;
    }
    to {
        transform: translateX(0) translateY(50px) rotate(45deg);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateX(0px) translateY(50px) rotate(45deg);
        opacity: 0.0;
    }
    to {
        transform: translateX(50px) translateY(0) rotate(45deg);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        transform: translateY(-50px) rotate(45deg);
        opacity: 0.0;
    }
    to {
        transform: translateY(0) rotate(45deg);
        opacity: 1;
    }
}

@keyframes fadeInToRight {
    from {
        transform: translateX(-100px) rotate(0deg);
        opacity: 0.0;
    }
    to {
        transform: translateX(0) rotate(0deg);
        opacity: 1;
    }
}

@keyframes flipinx {
    0% {
        opacity: 0;
        transform: perspective(600px) rotateX(90deg) rotate(45deg);
    }
    40% {
        transform: perspective(600px) rotateX(-10deg) rotate(45deg);
    }
    70% {
        transform: perspective(600px) rotateX(10deg) rotate(45deg);
    }
    100% {
        opacity: 1;
        transform: perspective(600px) rotateX(0deg) rotate(45deg);
    }
}

/* Base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Raleway, sans-serif;
}

/* Container and screen */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    border-radius: 30px;
}

.auth-screen {
    background: linear-gradient(90deg, #aad8f0, #4070b0);
    position: relative;
    height: 600px;
    width: 380px;
    box-shadow: 0 0 24px #aad8f0;
    border-radius: 30px;
}

.auth-screen__content {
    z-index: 1;
    position: relative;
    height: 100%;
}

/* Background shapes */
.auth-screen__background__shape {
    transform: rotate(45deg);
    position: absolute;
}

.auth-screen__background__shape1 {
    width: 550px;
    aspect-ratio: 1 / 1;
    background: #FFF;
    top: -50px;
    right: 120px;
    border-radius: 0 72px 0 0;
}

.auth-screen__background__shape2 {
    height: 180px;
    width: 180px;
    background: #bed89b;
    top: -140px;
    right: 0;
    border-radius: 32px;
    animation-duration: 1s;
    animation-name: flipinx;
    -webkit-animation-name: flipinx;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.57, .07, .52, .95);
}

.auth-screen__background__shape3 {
    height: 540px;
    width: 190px;
    background: linear-gradient(270deg, #ffee56, #e5d51b);
    top: -64px;
    right: 0;
    border-radius: 32px;
    animation-duration: 1s;
    animation-name: fadeInDown;
    -webkit-animation-name: fadeInDown;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.57, .07, .52, .95);
}

.auth-screen__background__shape4 {
    height: 400px;
    width: 100px;
    background: #caa6cc;
    top: 320px;
    right: 50px;
    border-radius: 60px;
    animation-duration: 1s;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.57, .07, .52, .95);
}

/* Form styles */
.auth-form {
    width: 320px;
    padding: 30px;
    padding-top: 156px;
}

.auth-form__field {
    padding: 20px 0;
    position: relative;
}

/*.auth-form__input {*/
/*    border: none;*/
/*    border-bottom: 2px solid #D1D1D4;*/
/*    background: none;*/
/*    padding: 10px;*/
/*    padding-left: 24px;*/
/*    font-weight: 700;*/
/*    width: 75%;*/
/*    transition: .2s;*/
/*}*/

.auth-form__submit {
    background: #fff;
    font-size: 14px;
    padding: 16px 20px;
    border-radius: 26px;
    border: 0 solid #D4D3E8;
    text-transform: uppercase;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #4C489D;
    box-shadow: 0 0 0 #aad8f0;
    cursor: pointer;
    transition: .2s;
    width: fit-content;
    text-decoration: none;

    &:not(:last-child){
        margin-bottom: 8px;
    }
}

.auth-form__submit:active,
.auth-form__submit:focus,
.auth-form__submit:hover {
    background-color: #aad8f0;
    color: white;
    outline: none;
}

.auth-form__button__icon {
    font-size: 24px;
    margin-left: auto;
    color: #4070b0;
}

/* Input container for relative positioning */
.auth-form__input-container {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

/* Icon positioned relative to its container */
.auth-form__icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #4070b0;
    z-index: 2;
    font-size: 16px;
}

/* Input with padding for icon */
.auth-form__input {
    border: none;
    border-bottom: 2px solid #D1D1D4;
    background: none;
    padding: 10px 10px 10px 30px;
    font-weight: 700;
    width: 95%;
    transition: .2s;
}

.auth-form__input:active,
.auth-form__input:focus,
.auth-form__input:hover {
    outline: none;
    border-bottom-color: #aad8f0;
}

/* Code input specific styling */
.auth-form__input--code {
    text-align: center;
    font-size: 18px;
    letter-spacing: 3px;
    padding-left: 30px; /* Keep space for icon */
}

/* Logo */
.auth-logo {
    width: 170px;
    display: block;
    margin: -100px 0 20px -60px;
    animation-duration: 1s;
    animation-name: fadeInToRight;
    -webkit-animation-name: fadeInToRight;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(.57, .07, .52, .95);
}

.auth-logo--large {
    font-size: 3em;
    font-weight: bold;
}

/* Error messages */
.auth-errorlist {
    color: #ff6b6b;
    list-style: none;
    padding: 0;
    margin: 10px 0;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 4px;
}

/* Email instruction box */
.auth-email-instruction {
    text-align: center;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.auth-email-instruction strong {
    color: #4070b0;
    font-weight: bold;
}

.auth-remember {
    margin-bottom: 15px;
    accent-color: #4070b0;
}

.auth-remember label {
    color: #4070b0;
    font-size: 14px;
}

/* Link styling */
.auth-link {
    color: #4070b0;
    text-decoration: none;
    font-size: 12px;
    margin-top: 15px;
    display: inline-block;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.auth-link:hover {
    opacity: 1;
    color: #aad8f0;
    text-decoration: none;
}

.auth-help-container {
    text-align: center;
    margin-top: 10px;
}

/* Help text */
.auth-help-text {
    font-size: 12px;
    color: red;
}

.auth-screen-body-container {
    margin-left: -50px;
}

/* Medium logo size for verification page */
.auth-logo--medium {
    font-size: 2.2em;
    font-weight: bold;
}

.auth-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    font-size: 12px;
    color: #aaaaaa;
    text-align: center;
}