.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 3rem 1rem;
    position: relative;
    z-index: 1;
}

/* Animated Background Elements */
.auth-container::before,
.auth-container::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(90px);
    animation: float 8s ease-in-out infinite;
}

.auth-container::before {
    background: linear-gradient(135deg, #f2277e, #aa196e);
    top: 5%;
    left: 10%;
}

.auth-container::after {
    background: linear-gradient(135deg, #aa196e, #f2277e);
    bottom: 5%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.auth-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

html:not(.is_dark) .auth-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #f2277e, #aa196e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

html:not(.is_dark) .auth-header h2 {
    background: linear-gradient(to right, #f2277e, #aa196e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: #a0a0a0;
    font-size: 1rem;
}

html:not(.is_dark) .auth-header p {
    color: #666;
}

/* Form Inputs */
.auth-input-group {
    margin-bottom: 1.25rem;
}

.auth-input,
.auth-select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none; /* Hide default select arrow */
}

html:not(.is_dark) .auth-input,
html:not(.is_dark) .auth-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333;
}

.auth-select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23a0a0a0%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem top 50%;
    background-size: 0.65rem auto;
    cursor: pointer;
}

html:not(.is_dark) .auth-select {
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
}

.auth-select option {
    background-color: #1a1a2e;
    color: #fff;
}

html:not(.is_dark) .auth-select option {
    background-color: #fff;
    color: #333;
}

.auth-input:focus,
.auth-select:focus {
    outline: none;
    border-color: #f2277e;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(242, 39, 126, 0.1);
}

html:not(.is_dark) .auth-input:focus,
html:not(.is_dark) .auth-select:focus {
    background: #fff;
    border-color: #aa196e;
    box-shadow: 0 0 0 4px rgba(170, 25, 110, 0.1);
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

html:not(.is_dark) .auth-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.recall {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}
.recall-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #a0a0a0;
}
.recall-label input {
    margin-right: 0.5rem;
    accent-color: #aa196e;
}
.auth-footer span {
    color: #a0a0a0;
}

.btn-auth {
    width: 100%;
    padding: 1.1rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, #f2277e, #aa196e);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

html:not(.is_dark) .btn-auth {
    background: linear-gradient(135deg, #aa196e, #f2277e);
}

.btn-auth::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #aa196e, #f2277e);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

html:not(.is_dark) .btn-auth::before {
    background: linear-gradient(135deg, #f2277e, #aa196e);
}

.btn-auth:hover::before {
    opacity: 1;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(242, 39, 126, 0.3);
    color: #fff;
}

html:not(.is_dark) .btn-auth:hover {
    box-shadow: 0 10px 20px rgba(170, 25, 110, 0.3);
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
}

.auth-footer a {
    color: #f2277e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #fff;
}

html:not(.is_dark) .auth-footer a:hover {
    color: #a51b85;
    text-decoration: underline;
    text-decoration-color: #a51b85;
}

.auth-errors {
    background: rgba(255, 77, 79, 0.1);
    border-left: 4px solid #ff4d4f;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.auth-errors p {
    color: #ff4d4f;
    margin: 0;
    font-size: 0.9rem;
}

.opt-group {
    font-weight: bold;
    color: #888;
}

.recall a {
    color: #f2277e;
}
.recall a:hover {
    color: #fff;
}

html:not(.is_dark) .recall a:hover {
    color: #a51b85;
    text-decoration: underline;
    text-decoration-color: #a51b85;
}

/* Success Message */
.auth-success {
    background: rgba(82, 196, 26, 0.1);
    border-left: 4px solid #52c41a;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.auth-success p {
    color: #52c41a;
    margin: 0;
    font-size: 0.9rem;
}

html:not(.is_dark) .auth-success {
    background: rgba(82, 196, 26, 0.15);
}
