:root {
    --primary-color: #FF7F5C;
    --primary-hover: #FF6B47;
    --secondary-color: #2C3E50;
    --background-light: #F8F9FA;
    --background-white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #6C757D;
    --border-color: #E1E8ED;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.illustration-side {
    background: linear-gradient(135deg, #FF7F5C 0%, #FF9A7B 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.illustration-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    opacity: 0.3;
}

.illustration-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.illustration-content img {
    max-width: 400px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

.illustration-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.illustration-text {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

.auth-card {
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.register-card {
    background: var(--background-white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.auth-card-body {
    padding: 30px;
}

.auth-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF7F5C 0%, #FF9A7B 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(255, 127, 92, 0.3);
}

.auth-icon i {
    font-size: 2rem;
    color: white;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.form-label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    height: auto;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 127, 92, 0.15);
    outline: none;
}

.input-group-text {
    background-color: var(--background-light);
    border: 2px solid var(--border-color);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--text-muted);
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 12px 12px 0;
}

.input-group-text i {
    width: 16px;
    text-align: center;
}

.custom-control-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
}

.custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-btn {
    padding: 14px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #FF7F5C 0%, #FF9A7B 100%);
    color: white;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(255, 127, 92, 0.3);
}

.auth-btn:hover {
    background: linear-gradient(135deg, #FF6B47 0%, #FF8566 100%);
    box-shadow: 0 6px 20px rgba(255, 127, 92, 0.4);
    transform: translateY(-2px);
}

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

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.auth-link-bold {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-link-bold:hover {
    color: var(--primary-hover);
    text-decoration: none;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 0;
}

.otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: var(--secondary-color);
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 127, 92, 0.15);
    outline: none;
}

.password-requirements {
    background-color: var(--background-light);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
}

.password-requirements ul li {
    margin-bottom: 5px;
}

.password-requirements .fa-check-circle {
    margin-right: 8px;
}

@media (max-width: 991.98px) {
    .auth-card {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .auth-card-body {
        padding: 20px;
    }

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

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

@media (max-width: 767.98px) {
    .auth-wrapper {
        padding: 15px;
    }

    .auth-card {
        border-radius: 15px;
        padding: 15px;
    }

    .auth-card-body {
        padding: 15px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .otp-input {
        width: 45px;
        height: 50px;
        font-size: 1.25rem;
    }

    .otp-input-group {
        gap: 8px;
    }
}

@media (max-width: 575.98px) {
    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 1.1rem;
    }

    .otp-input-group {
        gap: 6px;
    }

    .auth-icon {
        width: 70px;
        height: 70px;
    }

    .auth-icon i {
        font-size: 1.75rem;
    }
}
