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

body {
    font-family: Arial,sans-serif;
    background: linear-gradient(135deg,#e0eaff,#fff,#e0eaff);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: #333
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: none;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    color: #1877f2;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center
}

h2 {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 20px;
    text-align: center
}

form {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity .5s ease,transform .5s ease;
    margin-top: 20px;
    justify-content: center;
    align-items: center;
}

form.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 1;
    transform: translateY(0);
}

input {
    padding: 16px;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 10px;
    font-size: 1rem;
    width: 100%;
    transition: all .3s ease
}

input:focus {
    border-color: #1877f2;
    outline: 0;
    box-shadow: 0 0 8px rgba(24,119,242,.3)
}


button {
    padding: 16px 20px;
    background-color: #1877f2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    width: 100%;
    cursor: pointer;
    transition: background-color .3s ease
}

button:disabled {
    background-color: #ddd;
    cursor: not-allowed
}

button:hover:enabled {
    background-color: #155db2
}

.create-account-btn {
    width: 66%;
    align-self: center;
    color: #1877f2;
    background-color: transparent;
    margin-top: 10px;
    border: 1.5px solid #1877f2;
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 12px 12px;
}

.create-account-btn:hover {
    background-color: #e0eaff;
    color: white;
    
}

.toggle-link {
    font-size: .9rem;
    color: #555;
    margin-top: 10px;
    text-align: center
}

.toggle-link a {
    color: #1877f2;
    text-decoration: none;
    font-weight: 700
}

.toggle-link a:hover {
    text-decoration: underline
}

.forgot-password {
    text-align: center;
    margin-top: 10px;
    font-size: .875rem;
    color: #555
}

.forgot-password a {
    color: #1877f2;
    text-decoration: none;
    font-weight: 700;
    opacity: 80%;
}

.forgot-password a:hover {
    text-decoration: underline;
    opacity: 100%;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px 0
}

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

.divider span {
    margin: 0 10px;
    font-size: .875rem;
    color: #666
}

.footer {
    margin-top: 20px;
    font-size: .75rem;
    color: #999;
    text-align: center
}

.footer a {
    color: #666;
    text-decoration: none;
    margin: 0 5px
}

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

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    font-size: 1.0rem;
    color: #555
}

.password-requirements .requirement-group {
    display: flex;
    gap: 20px
}

.password-requirements .requirement {
    flex: 1;
    display: flex;
    align-items: center
}

.password-requirements .requirement span {
    margin-left: 8px;
    display: block
}

.password-requirements .requirement .invalid {
    color: #e74c3c
}

.password-requirements .requirement .valid {
    color: #2ecc71
}

@media (max-width: 500px) {
    .container {
        padding:15px
    }

    h1 {
        font-size: 2rem
    }

    h2 {
        font-size: 1.125rem
    }

    button {
        padding: 12px;
        font-size: .875rem
    }
}
@media (max-width: 375px) {
    h1 {
        font-size:1.75rem
    }
    h2 {
        font-size: 1rem
    }

    input {
        padding: 14px;
        font-size: .875rem
    }

    .create-account-btn {
        font-size: .875rem
    }
}
