:root {
    --primary-color: #f54d3d;
    --primary-dark: #b63b30;
    --primary-light: #ef7e74;
    --secondary-color: #1a1a1a;
    --secondary-dark: #000000;
    --accent-color: #F59E0B;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --text-light: #9CA3AF;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-lighter: #F3F4F6;
    --border-color: #E5E7EB;
    --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);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 0.75rem;
    --header-height: 4.5rem;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--bg-light) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    width: 100%;
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

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

.left-side {
    background: white;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.left-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.brand-section {
    position: relative;
    z-index: 1;
    color: black;
    text-align: center;
}

.brand-logo {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0rem;
    animation: float 3s ease-in-out infinite;
}

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

.brand-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out 0.2s both;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    animation: fadeIn 0.8s ease-out 0.4s both;
    color: var(--text-gray);
}

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

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: rgb(23, 23, 23);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: slideInLeft 0.6s ease-out both;
}

.feature-item:nth-child(1) { animation-delay: 0.6s; }
.feature-item:nth-child(2) { animation-delay: 0.7s; }
.feature-item:nth-child(3) { animation-delay: 0.8s; }

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

.feature-item i {
    font-size: 1.5rem;
    opacity: 0.9;
}

.feature-item span {
    font-size: 1rem;
    opacity: 0.9;
}

.right-side {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 480px;
}

.form-wrapper {
    position: relative;
    overflow: hidden;
}

.form-card {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateX(100%);
    transition: var(--transition);
}

.form-card.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    transform: translateX(0);
    animation: slideIn 0.5s ease-out;
}

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

.form-header {
    margin-bottom: 2rem;
    animation: fadeIn 0.6s ease-out;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: calc(var(--border-radius) - 0.25rem);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    font-family: inherit;
}

.social-btn:hover {
    background: var(--bg-lighter);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.social-btn i {
    font-size: 1.25rem;
}

.google-btn i {
    color: #DB4437;
}

.meta-btn i {
    color: #1877F2;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    position: relative;
    padding: 0 1rem;
    background: var(--bg-white);
    color: var(--text-gray);
    font-size: 0.875rem;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }

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

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: calc(var(--border-radius) - 0.25rem);
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(245, 77, 61, 0.1);
}

.input-wrapper input:focus ~ .input-icon {
    color: var(--primary-color);
}

.floating-label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--transition);
    background: var(--bg-white);
    padding: 0 0.25rem;
}

.input-wrapper input:focus ~ .floating-label,
.input-wrapper input:not(:placeholder-shown) ~ .floating-label {
    top: 0;
    font-size: 0.75rem;
    color: var(--primary-color);
    left: 2.5rem;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    z-index: 1;
}

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

.toggle-password i {
    font-size: 1rem;
}

.error-message {
    display: block;
    color: var(--primary-color);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
    opacity: 0;
    transition: var(--transition);
}

.error-message.show {
    opacity: 1;
}

.input-wrapper input.error {
    border-color: var(--primary-color);
}

.input-wrapper input.success {
    border-color: #10B981;
}

.password-strength {
    margin-top: 0.75rem;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: var(--bg-lighter);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    width: 0;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33%;
    background: var(--primary-color);
}

.strength-fill.medium {
    width: 66%;
    background: var(--accent-color);
}

.strength-fill.strong {
    width: 100%;
    background: #10B981;
}

.strength-text {
    font-size: 0.8125rem;
    color: var(--text-gray);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-white);
    font-size: 0.75rem;
}

.checkbox-text {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    border: none;
    border-radius: calc(var(--border-radius) - 0.25rem);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.submit-btn.loading .btn-text {
    opacity: 0;
}

.submit-btn.loading .btn-loader {
    opacity: 1;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.btn-loader::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--bg-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

.form-footer {
    text-align: center;
    animation: fadeIn 0.6s ease-out 0.6s both;
}

.form-footer p {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.toggle-form-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.toggle-form-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.success-overlay.show {
    opacity: 1;
    visibility: visible;
}

.success-animation {
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.show .success-animation {
    transform: scale(1);
}

.checkmark-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 20px rgba(16, 185, 129, 0.2);
    animation: checkmarkPulse 0.8s ease-out;
}

@keyframes checkmarkPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    100% {
        box-shadow: 0 0 0 20px rgba(16, 185, 129, 0);
    }
}

.checkmark-circle i {
    font-size: 3.5rem;
    color: var(--bg-white);
    animation: checkmarkDraw 0.3s ease-out 0.2s both;
}

@keyframes checkmarkDraw {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@media (max-width: 1024px) {
    .split-screen {
        grid-template-columns: 1fr;
    }

    .left-side {
        padding: 3rem 2rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .features-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

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

    .left-side {
        padding: 2rem 1.5rem;
    }

    .right-side {
        padding: 2rem 1.5rem;
    }

    .brand-title {
        font-size: 1.75rem;
    }

    .brand-subtitle {
        font-size: 1rem;
    }

    .form-header h2 {
        font-size: 1.75rem;
    }

    .feature-item {
        font-size: 0.875rem;
    }

    .feature-item i {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .split-screen {
        border-radius: 0;
    }

    .social-auth {
        flex-direction: column;
    }

    .social-btn span {
        font-size: 0.875rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .brand-logo {
        width: 100px;
        height: 100px;
    }

    .brand-logo i {
        font-size: 2rem;
    }
}
