.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.auth-decoration {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.decoration-content {
    position: relative;
    z-index: 2;
}

.decoration-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.decoration-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.decoration-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.decoration-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.decoration-features .feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.decoration-features .feature-item i {
    font-size: 1.3rem;
}

.decoration-circles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    animation: pulse 4s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -30px;
    animation: pulse 5s ease-in-out infinite 1s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation: pulse 3s ease-in-out infinite 0.5s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

.auth-form-section {
    padding: 60px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-card {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
}

.form-label i {
    font-size: 1.1rem;
    color: #667eea;
}

.optional-tag {
    font-size: 0.85rem;
    color: #a0aec0;
    font-weight: 400;
    margin-left: 4px;
}

.invitation-code-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

.invitation-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #f0f4ff;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #667eea;
    margin-top: 8px;
}

.invitation-hint i {
    font-size: 1rem;
}

.invitation-hint strong {
    color: #5568d3;
}

.password-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 10px 14px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #856404;
    margin-top: 8px;
    line-height: 1.5;
}

.password-hint i {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.captcha-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.captcha-input {
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    font-size: 1.1rem;
}

.captcha-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.captcha-image {
    height: 50px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-image:hover {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.captcha-refresh {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.captcha-refresh:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.email-code-container {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.email-code-input {
    flex: 1;
    letter-spacing: 4px;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
}

.btn-send-code {
    flex-shrink: 0;
    padding: 14px 20px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.btn-send-code:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.btn-send-code:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
}

.email-code-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #718096;
}

.email-code-hint i {
    color: #4299e1;
}

.form-control {
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

.btn-submit {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-submit i {
    font-size: 1.3rem;
}

.auth-footer {
    margin-top: 30px;
    text-align: center;
}

.auth-link {
    font-size: 0.95rem;
    color: #4a5568;
    margin: 0;
}

.auth-link a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-link a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.alert {
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
    }

    .auth-decoration {
        display: none;
    }

    .auth-form-section {
        padding: 40px 30px;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 20px 15px;
    }

    .auth-form-section {
        padding: 30px 20px;
    }

    .auth-title {
        font-size: 1.75rem;
    }
}
