:root {
    --p-gold: #D27D19;
}

.registration-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.registration-card {
    width: 100%;
    max-width: 600px;
    background: #fff;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.login-card {
    max-width: 520px;
}

.card-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at top, rgba(210, 125, 25, 0.15), transparent 65%);
    z-index: -1;
    filter: blur(30px);
    opacity: 0.8;
}

body.dark-theme .registration-card {
    background: #1a4150;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.registration-title {
    font-size: 2.8rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 5px;
    background: linear-gradient(45deg, #222, #444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.dark-theme .registration-title {
    background: linear-gradient(45deg, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.registration-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
    font-size: 1.1rem;
}

body.dark-theme .registration-subtitle {
    color: #aaa;
}

.login-link {
    color: var(--p-gold) !important;
    text-decoration: none;
}

.registration-source-toggle {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 10px 18px;
    border-radius: 999px;
    border: 1.5px solid #ddd;
    color: #444;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease-in-out;
    background: #f6f6f6;
}

.toggle-btn.is-active {
    border-color: var(--p-gold);
    color: #fff;
    background: var(--p-gold);
    box-shadow: 0 8px 18px rgba(210, 125, 25, 0.25);
}

body.dark-theme .toggle-btn {
    background: #2c2c2c;
    color: #ddd;
    border-color: #444;
}

body.dark-theme .toggle-btn.is-active {
    color: #fff;
    border-color: var(--p-gold);
}

.google-prefill-note {
    background: rgba(210, 125, 25, 0.1);
    border: 1px solid rgba(210, 125, 25, 0.3);
    color: #7a4b12;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
}

body.dark-theme .google-prefill-note {
    color: #f4c58c;
    border-color: rgba(210, 125, 25, 0.6);
}

.google-auth-active .google-password-fields {
    display: none;
}

.form-group-custom label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
    font-size: 0.95rem;
}

body.dark-theme .form-group-custom label {
    color: #ddd;
}

body.dark-theme .form-group-custom input,
body.dark-theme .form-group-custom select {
    background-color: rgba(29, 66, 80);
    color: #e5f8ff;
    border-color: #2c5f6b;
}

.form-group-custom input,
.form-group-custom select {
    width: 100%;
    padding: 12px 16px;
    height: 50px;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    appearance: none;
}

.form-group-custom input:focus {
    border-color: var(--p-gold);
    box-shadow: 0 0 0 3px rgba(210, 125, 25, 0.1);
    outline: none;
}

.locked-fields.is-locked {
    opacity: 0.3;
    pointer-events: none;
    filter: blur(1px);
}

.rest-fields-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    display: none;
    justify-content: center;
    padding-top: 100px;
    z-index: 100;
    font-weight: 800;
    color: #222;
    font-size: 1.2rem;
}

.locked-fields.is-locked .rest-fields-overlay {
    display: flex;
}

.birthday-picker {
    display: flex;
    gap: 12px;
}

.birthday-picker select {
    flex: 1;
    height: 48px;
    padding: 0 12px;
    appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23666' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") no-repeat right 12px center;
}

body.dark-theme .birthday-picker select {
    background-color: #222;
    color: #fff;
    border-color: #444;
}

.input-group-custom {
    display: flex;
    gap: 12px;
}

.btn-action-outline {
    padding: 0 15px;
    background: #fff;
    border: 2px solid var(--p-gold);
    color: var(--p-gold);
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-action-outline:hover {
    background: var(--p-gold);
    color: #fff;
}

body.dark-theme .btn-action-outline {
    background: transparent;
}

.icon-carousel-custom {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 12px;
    background: #f0f0f0;
    border-radius: 16px;
    margin-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--p-gold) #eee;
}

body.dark-theme .icon-carousel-custom {
    background: #2a2a2a;
}

.icon-item-custom {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

body.dark-theme .icon-item-custom {
    background: #333;
}

.icon-item-custom:hover {
    transform: scale(1.05);
}

.icon-item-custom img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.icon-item-custom.selected {
    border-color: var(--p-gold);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(210, 125, 25, 0.2);
}

.btn-default-icon {
    background: #fff;
    border: 1.5px solid #ddd;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-default-icon:hover {
    border-color: var(--p-gold);
    color: var(--p-gold);
}

body.dark-theme .btn-default-icon {
    background: transparent;
    border-color: #444;
    color: #aaa;
}

.password-toggle {
    position: absolute;
    right: 20px;
    top: 48px;
    cursor: pointer;
    color: #aaa;
    z-index: 5;
}

.password-container {
    position: relative;
}

.submit-wrapper {
    margin-top: 10px;
}

.btn-register-primary {
    width: 100%;
    padding: 18px;
    background: var(--p-gold);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(210, 125, 25, 0.3);
    text-transform: uppercase;
}

.btn-register-primary:hover {
    background: #b56b15; /* Added hover effect */
    color: white;
    text-decoration: none;
}

.btn-login-primary {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--p-gold);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(210, 125, 25, 0.3);
    text-transform: uppercase;
}

.login-alt-actions {
    margin-top: 14px;
    text-align: center;
}

.btn-google-outline,
.btn-outline-dark {
    display: inline-block;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid #ddd;
    color: #333;
    background: #fff;
    transition: 0.2s ease-in-out;
}

.btn-google-outline:hover,
.btn-outline-dark:hover {
    border-color: var(--p-gold);
    color: var(--p-gold);
}

body.dark-theme .btn-google-outline,
body.dark-theme .btn-outline-dark {
    background: transparent;
    color: #ddd;
    border-color: #444;
}

.login-help {
    text-align: center;
    margin-top: 18px;
}

.login-help a {
    color: var(--p-gold);
    text-decoration: none;
    font-weight: 700;
}

.disclaimer-text {
    font-size: 0.82rem;
    text-align: center;
    margin-top: 16px;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #666;
}

body.dark-theme .disclaimer-text {
    color: #aaa;
}

.disclaimer-text a {
    color: var(--p-gold);
    text-decoration: underline;
    font-weight: 700;
}

.animate-in {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.timer-ring {
    width: 80px;
    height: 80px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--p-gold);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--p-gold);
}

body.dark-theme .timer-ring {
    border-color: #333;
}

.policies-wrapper {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    border: 1.5px solid #eee;
}

body.dark-theme .policies-wrapper {
    background: #2a2a2a;
    border-color: #444;
}

.policy-note {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: #666;
}

body.dark-theme .policy-note {
    color: #aaa;
}

.custom-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.custom-checkbox:last-child {
    margin-bottom: 0;
}

.custom-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.custom-checkbox label {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.4;
    font-weight: 500;
    cursor: pointer;
}

body.dark-theme .custom-checkbox label {
    color: #ddd;
}

.custom-checkbox label a {
    color: var(--p-gold);
    text-decoration: underline;
    font-weight: 700;
}

/* New UI Styles */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper .input-group-custom,
.input-wrapper .birthday-picker,
.input-wrapper .icon-selector-custom {
    flex-grow: 1;
    width: auto;
    min-width: 0;
}

.input-wrapper .input-group-custom .btn-action-outline {
    white-space: nowrap;
}

.field-icon-right {
    margin-left: 12px;
    color: #fff;
    font-size: 1.1rem;
    cursor: help;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.field-icon-right:hover {
    opacity: 1;
}

body.dark-theme .field-icon-right {
    color: #ddd;
}

/* Password Eye Icon */
.password-toggle-left {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
    z-index: 5;
    font-size: 1.1rem;
}

.password-input-with-icon {
    padding-left: 45px !important;
}

/* Adjust birthday picker to not break layout */
.birthday-picker {
    width: 100%;
}

.input-group-custom {
    width: 100%;
}
