:root {
    --primary: #F26523;
    --primary-glow: rgba(242, 101, 35, 0.5);
    --accent: #F7931E;
    --bg-dark: #0a0e17;
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.15);
    --text-main: #ffffff;
    --text-muted: #cdcdcd;
    --input-bg: rgba(255, 255, 255, 0.05);
    --success: #28a745;
    --error: #dc3545;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    padding: 40px 20px;
}

/* Dynamic Background Particles Effect */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(242, 101, 35, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(247, 147, 30, 0.1) 0%, transparent 40%);
    z-index: -1;
}

.auth-container {
    width: 100%;
    max-width: 800px;
    z-index: 10;
}

.auth-container.login {
    max-width: 420px;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out forwards;
}

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

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-section img {
    height: 50px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
    margin-bottom: 10px;
}

.logo-section h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.header-section {
    text-align: center;
    margin-bottom: 35px;
}

.header-section h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.header-section p {
    color: var(--text-muted);
    font-size: 14px;
}

/* Grid Layout for Register */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 12px 14px 12px 42px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(242, 101, 35, 0.15);
}

.form-control:focus + i {
    color: var(--primary);
}

.warning-text {
    font-size: 11px;
    color: var(--error);
    margin-top: 4px;
    height: 14px;
}

.error-banner {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ff4d4d;
    font-size: 13px;
    font-weight: 500;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.error-banner i {
    font-size: 18px;
}

.options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 25px;
    font-size: 13px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11px;
    opacity: 0.8;
}

.remember-me span {
    line-height: 1.4;
}

.remember-me:hover {
    opacity: 1;
}

.checkbox-group input,
.remember-me input {
    margin-right: 8px;
    width: 14px;
    height: 14px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.link-primary,
.forgot-link,
.footer-section a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.link-primary:hover {
    opacity: 0.8;
}

.btn-auth,
.btn-login {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    border-radius: 12px;
    padding: 14px;
    color: white;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -10px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-auth:hover:not(:disabled),
.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-auth:disabled,
.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.footer-section {
    text-align: center;
    margin-top: 30px;
    font-size: 13px;
    color: var(--text-muted);
}

.password-toggle {
    position: absolute;
    right: 14px;
    left: auto;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease;
    font-size: 16px;
}

.password-toggle:hover {
    color: var(--text-main);
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#hiddenFields {
    transition: all 0.5s ease;
}

.strength-meter {
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}
