body, html {
    font-family: 'Font', sans-serif;
    background: #070e1c;
    color: white;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: 0;
}
.login-box {
    background-color: #121b2f;
    border-radius: 20px;
    box-shadow: 0 0 10px rgba(255, 107, 187, 0.5);
    width: 380px;
    padding: 32px 32px 40px;
    color: #fff;
    position: relative;
    margin: auto;
}
.home-button-container {
    position: absolute;
    top: 35px;
    right: 35px;
}

.home-button {
    position: absolute;
    width: 20px;
    height: 20px;
}

.home-button img {
    position: absolute;
    width: 100%;
    height: 100%;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
    font-size: 1.1rem;
    user-select: none;
}
.auth-tabs a {
    color: #ff6bbb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}
.auth-tabs a:hover {
    color: #ffa3d3;
}
.auth-tabs .active {
    color: #fff;
    font-weight: 700;
    cursor: default;
    text-decoration: none;
}
label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #ccc;
    font-size: 0.95rem;
}
#form input[type="text"],
#form input[type="password"] {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 20px;
    border: none;
    border-radius: 200px;
    background-color: #202733;
    color: #fff;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    font-family: 'Font', sans-serif;
}
#form input[type="text"]:hover,
#form input[type="password"]:hover,
#form input[type="text"]:focus,
#form input[type="password"]:focus {
    background-color: #222d45;
    outline: none;
}
#form input[type="submit"] {
    width: 100%;
    padding: 14px 0;
    border: none;
    border-radius: 200px;
    background: linear-gradient(to right, #0f335c, #aa01a9);
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.4s ease;
    font-family: 'Font', sans-serif;
}
#form input[type="submit"]:hover {
    background: linear-gradient(to right, #aa01a9, #0f335c);
}
.remember-me-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgb(255, 107, 187);
}
.remember-me-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: rgb(255, 107, 187);
    cursor: pointer;
}
.remember-me-container label {
    cursor: pointer;
}
.forgot-password {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
}
.forgot-password a {
    color: #ff6bbb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}
.forgot-password a:hover {
    text-decoration: underline;
    color: #ffa3d3;
}
.resend-code {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
}
.resend-code a {
    color: #ff6bbb;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}
.resend-code a:hover {
    text-decoration: underline;
    color: #ffa3d3;
}
.error-message {
    color: #fff;
    background-color: #f946aa;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    width: 348px;
    font-weight: 500;
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0;
    transition: 
        top 0.4s ease-out,
        opacity 0.4s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.error-message.show {
    top: 20px;
    opacity: 1;
}
.error-message.hide {
    top: -100px;
    opacity: 0;
}
.error-message::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%;
    transform: scaleX(1);
    transform-origin: left;
    transition: transform 7s linear;
}
.error-message.show::after {
    transform: scaleX(0);
}