* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4A90E2;
    --primary-dark: #2C6EBB;
    --primary-light: #7FB3F0;
    --secondary: #D4AF37;
    --secondary-dark: #B8941F;
    --accent: #8B4513;
    --danger: #E74C3C;
    --success: #27AE60;
    --warning: #F39C12;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #2C6EBB 50%, #7FB3F0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 60px; height: 60px; left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { width: 100px; height: 100px; left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { width: 70px; height: 70px; left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { width: 90px; height: 90px; left: 85%; animation-delay: 8s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 0.6; }
}

/* Main Container */
.auth-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1000px;
}

.auth-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 650px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Form Side */
.form-side {
    padding: 50px 40px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    width: 150px;
    height: auto;
    margin-bottom: 15px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.brand h1 {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.brand p {
    color: #64748b;
    font-size: 14px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.alert-danger {
    background: #fee;
    color: var(--danger);
    border: 1px solid #fcc;
}

.alert-success {
    background: #d1fae5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background: #fef3cd;
    color: var(--warning);
    border: 1px solid #ffeaa7;
}

.alert i {
    font-size: 18px;
}

/* Contact Message Info */
.contact-message-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 25px;
    animation: slideIn 0.5s ease-out;
}

.contact-message-info h6 {
    color: #1565c0;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-message-info p {
    color: #1976d2;
    font-size: 14px;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 500;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 16px;
    transition: all 0.3s;
}

.form-control {
    width: 100%;
    padding: 14px 18px 14px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
}

.form-control:focus + .input-icon {
    color: var(--primary);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    padding-top: 14px;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* Remember Me & Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-wrapper label {
    font-size: 14px;
    color: #64748b;
    cursor: pointer;
    margin: 0;
    user-select: none;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Links */
.form-footer {
    text-align: center;
    margin-top: 25px;
}

.form-footer p {
    color: #64748b;
    font-size: 14px;
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    margin-top: 15px;
}

.back-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-5px);
}

/* Info Side */
.info-side {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.95), rgba(44, 110, 187, 0.95));
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.info-side::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.info-side::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(212, 175, 55, 0.15);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.info-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.info-icon {
    font-size: 80px;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--secondary);
    animation: bounce 3s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.info-content h2 {
    font-size: 32px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}

.info-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.features {
    width: 100%;
    max-width: 350px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateX(10px);
    border-color: var(--secondary);
}

.feature-icon {
    width: 45px;
    height: 45px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
}

.feature-text {
    text-align: left;
}

.feature-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 3px;
}

.feature-text small {
    font-size: 13px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .info-side {
        display: none;
    }

    .form-side {
        padding: 30px 20px;
    }

    .brand h1 {
        font-size: 24px;
    }

    .brand-logo {
        width: 120px;
    }
}

/* Small text under inputs */
.form-text {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 5px;
}

.input-error {
    border-color: var(--danger) !important;
    background: #fef7f7 !important;
}

.error-message {
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.input-wrapper.error .input-icon {
    color: var(--danger);
}

.password-strength.weak .strength-bar {
    background: var(--danger) !important;
}

.password-strength.medium .strength-bar {
    background: var(--warning) !important;
}

.password-strength.strong .strength-bar {
    background: #5DADE2 !important;
}

.password-strength.very-strong .strength-bar {
    background: var(--success) !important;
}

/* Login specific styles */
.login-container {
    min-height: 550px;
}

/* Register specific styles */
.register-container {
    min-height: 650px;
}

.register-form-side {
    padding: 20px 15px;
}