:root {
    --primary-color: #FF7043;
    --secondary-color: #E64A19;
    --light-bg: #FFF5F2;
    --dark-text: #333333;
    --light-text: #666666;
    --white: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: opacity 0.5s var(--animation-timing), transform 0.5s var(--animation-timing);
}

.left-panel {
    flex: 1;
    background-color: var(--primary-color);
    padding: 40px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-panel h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.left-panel p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.benefits {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    transition: transform 0.3s var(--animation-timing);
}

.benefit-item:hover {
    transform: translateX(5px);
}

.benefit-icon {
    font-size: 24px;
    margin-right: 15px;
}

.benefit-text {
    font-size: 14px;
}

.right-panel {
    flex: 1.2;
    padding: 40px;
    background-color: var(--white);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header .logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s var(--animation-timing);
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    margin-right: 10px;
}

.form-header h2 {
    font-size: 24px;
    color: var(--dark-text);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--light-text);
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-text);
}

input, select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

input:focus, select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 112, 67, 0.2);
}

.btn {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: var(--light-text);
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s var(--animation-timing);
    position: relative;
}

.form-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--animation-timing);
}

.form-footer a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.form-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s var(--animation-timing),
                transform 0.4s var(--animation-timing);
}

.form-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Error message styling */
.error-message {
    color: #E64A19;
    font-size: 12px;
    margin-top: 5px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* Invalid input state */
input.invalid {
    border-color: #E64A19 !important;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Completion screen styling */
.completion-container {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.check-icon {
    width: 64px;
    height: 64px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.email-info {
    font-size: 13px;
    color: var(--light-text);
    margin-top: 8px;
}

/* Error shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Success pulse animation */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 0.5s var(--animation-timing);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .left-panel {
        display: none;
    }
    
    .right-panel {
        padding: 30px 20px;
    }
}

/* Spinner for loading states */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}