:root {
    --bg-color: #0b1120;
    --surface-color: rgba(30, 41, 59, 0.6);
    --border-color: rgba(148, 163, 184, 0.15);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-1: #3b82f6;
    --accent-2: #10b981;
    --gradient-primary: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Auth Page Wrapper */
.auth-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Animated Background Shapes */
.auth-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% -20%, #1e293b 0%, var(--bg-color) 40%);
}

.shape {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.4;
    animation: drift 15s infinite alternate ease-in-out;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-2);
    bottom: -50px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

/* Glassmorphism Auth Card */
.auth-card {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-1);
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .icon {
    position: absolute;
    left: 16px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    background: rgba(15, 23, 42, 0.8);
}

/* Form Options (Remember me, Forgot password) */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
}

.remember-me input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent-1);
}

.forgot-password {
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--text-primary);
}

/* Button */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

/* Footer / Policy Links */
.auth-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-footer p {
    margin-bottom: 12px;
}

.auth-footer a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.auth-footer a:hover {
    color: var(--accent-1);
}

.policy-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.dot {
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
}

/* Simple General Page Styling (for policy pages) */
.page-container {
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(20px);
}

.page-container h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-container p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    color: var(--accent-1);
    text-decoration: none;
    font-weight: 500;
}

.back-link:hover {
    color: var(--text-primary);
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 20px;
    }

    .logo {
        font-size: 1.75rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
    }
}

/* Toast Notification */
.toast-message {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast-message.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-message.success {
    background: var(--accent-2);
}

.toast-message.error {
    background: #ef4444;
}

.toast-message.info {
    background: var(--accent-1);
}