* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #c4a57b;
    --accent-light: #e8dcc8;
    --text-dark: #1a1a2e;
    --text-light: #f5f5f5;
    --border-color: #cbd5e1;
    --error-color: #ef4444;
    --success-color: #22c55e;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Syne', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f3460 100%);
    overflow: hidden;
}

body {
    position: relative;
}

#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.auth-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: transparent;
}

.auth-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.3;
    border-radius: 50%;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #c4a57b, #e8dcc8);
    top: -100px;
    left: -100px;
    animation: blobMove1 15s ease-in-out infinite;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #0f3460, #16213e);
    bottom: -100px;
    right: -100px;
    animation: blobMove2 20s ease-in-out infinite;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #c4a57b, #0f3460);
    top: 50%;
    right: 10%;
    animation: blobMove3 18s ease-in-out infinite;
}

@keyframes blobMove1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(30px, -50px);
    }
    50% {
        transform: translate(-30px, 50px);
    }
    75% {
        transform: translate(50px, 30px);
    }
}

@keyframes blobMove2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-40px, 50px);
    }
    50% {
        transform: translate(40px, -50px);
    }
    75% {
        transform: translate(-50px, -40px);
    }
}

@keyframes blobMove3 {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(50px, -30px);
    }
    66% {
        transform: translate(-50px, 30px);
    }
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    height: 100%;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 80px;
    width: 100%;
    align-items: center;
}

.auth-left {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.auth-content {
    color: white;
}

.auth-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #c4a57b, #e8dcc8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -2px;
}

.auth-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #c4a57b;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.auth-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 50px;
}

.auth-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.feature:nth-child(2) {
    animation-delay: 0.1s;
}

.feature:nth-child(3) {
    animation-delay: 0.2s;
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #c4a57b, #e8dcc8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    flex-shrink: 0;
    box-shadow: 0 10px 25px rgba(196, 165, 123, 0.2);
}

.feature h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 5px;
}

.feature p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.auth-right {
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, #c4a57b, transparent);
}

.login-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, transparent, #c4a57b, transparent);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.login-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.login-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    letter-spacing: -0.5px;
}

.alert-error {
    background: #fee2e2;
    border: 1.5px solid #fecaca;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error i {
    color: var(--error-color);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-content {
    color: var(--error-color);
    font-size: 13px;
    line-height: 1.5;
}

.login-form {
    margin-bottom: 25px;
}

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.form-input-wrapper i {
    position: absolute;
    left: 14px;
    color: #b0b0b0;
    font-size: 16px;
    z-index: 2;
    transition: color 0.3s ease;
}

.form-control {
    width: 100%;
    background: #f8f8f8;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    padding: 12px 12px 12px 42px;
    font-size: 14px;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.form-control::placeholder {
    color: #b0b0b0;
}

.form-control:focus {
    background: #fff;
    border-color: #c4a57b;
    box-shadow: 0 0 0 4px rgba(196, 165, 123, 0.1);
    outline: none;
}

.form-control:focus ~ i {
    color: #c4a57b;
}

.form-control.is-invalid {
    border-color: var(--error-color);
}

.form-error {
    font-size: 12px;
    color: var(--error-color);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    font-size: 10px;
    font-weight: bold;
}

.btn-submit {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--primary), #1e293b);
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-top: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Syne', sans-serif;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #c4a57b, #e8dcc8);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-submit:hover::before {
    left: 0;
}

.btn-submit:hover span {
    color: var(--text-dark);
}

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

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-submit i {
    transition: transform 0.3s ease;
}

.btn-submit:hover i {
    transform: translateX(4px);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.login-footer p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.login-footer a {
    color: #c4a57b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #0f172a;
}

@media (max-width: 1200px) {
    .auth-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .auth-left {
        display: none;
    }

    .login-card {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 20px;
    }

    .auth-title {
        font-size: 48px;
    }

    .auth-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .auth-description {
        font-size: 14px;
    }

    .login-card {
        padding: 35px 25px;
    }

    .login-header h2 {
        font-size: 24px;
    }

    .login-logo {
        width: 50px;
        height: 50px;
    }

    .form-control {
        padding: 10px 10px 10px 38px;
        font-size: 13px;
    }

    .btn-submit {
        padding: 11px 16px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .auth-title {
        font-size: 36px;
    }

    .login-card {
        padding: 25px 18px;
        border-radius: 16px;
    }

    .login-header {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .form-label {
        font-size: 12px;
    }

    .form-control {
        padding: 9px 9px 9px 35px;
        font-size: 13px;
        border-radius: 8px;
    }

    .form-input-wrapper i {
        left: 11px;
        font-size: 14px;
    }
}