:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --text-muted: #e2e8f0;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --input-bg: rgba(255, 255, 255, 0.15);
    --error-color: #fc8181;
    --success-color: #68d391;
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Fix for dropdown options visibility */
option {
    color: #1a1a1a;
    background-color: #ffffff;
}

.background-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 10s infinite alternate;
}

.shape:nth-child(1) {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: #4338ca;
}

.shape:nth-child(2) {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #db2777;
    animation-delay: -5s;
}

@keyframes move {
    from {
        transform: translate(0, 0) rotate(0deg);
    }

    to {
        transform: translate(50px, 50px) rotate(20deg);
    }
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    box-sizing: border-box;
    width: 100%;
}

.auth-container,
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    box-shadow: var(--card-shadow);
    animation: fadeIn 0.8s ease-out;
}

.auth-logo {
    font-size: 3rem;
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.auth-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-header p {
    color: var(--text-muted);
    margin: 0;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Important for padding */
}

.form-control::placeholder {
    color: transparent;
}

.form-label {
    position: absolute;
    left: 16px;
    top: 12px;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-control:not(:placeholder-shown) {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.form-control:focus+.form-label,
.form-control:not(:placeholder-shown)+.form-label {
    transform: translateY(-28px) scale(0.85);
    left: 8px;
    /* diverse shift */
    color: #fff;
    font-weight: 600;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Ripple effect */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

.auth-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}

.auth-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s;
}

.auth-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.auth-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.alert {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.alert-error {
    background: rgba(252, 129, 129, 0.2);
    border: 1px solid var(--error-color);
    color: #ffd7d7;
}

.alert-success {
    background: rgba(104, 211, 145, 0.2);
    border: 1px solid var(--success-color);
    color: #c6f6d5;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}