/* Sign Up Page Specific Styles */

/* Main Content */
.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 110px;
}

/* Match signup card with navbar gradient (glass-card is inherited) */
.glass-card {
    background: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    box-shadow: 0 18px 40px rgba(0, 77, 64, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
}

body.dark-mode .glass-card {
    background: var(--navbar-bg);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Logo Container in Main Card */
.main-logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.main-logo-circle {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #00796B, #004D40);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: logoFloat 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.main-logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.3);
}

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

.main-logo-circle i {
    color: #ffffff;
    font-size: 28px;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 121, 107, 0.15);
    color: var(--primary-color); /* Fallback color */
    padding-bottom: 2px; /* Reduces gap to the underline */
}

.logo-text-wrapper {
    position: relative;
    display: inline-block; /* Ensures wrapper fits the text width */
    border-bottom: 2px solid rgba(0, 121, 107, 0.2);
    margin-bottom: 20px; /* Space below the slogan */
}

.logo-subtitle {
    position: absolute;
    bottom: -20px; /* Positioned below the underline */
    right: 0;
    font-size: 0.7rem;
    font-weight: 500;
    font-style: italic; /* Makes the slogan italic */
}

/* Dark Mode Overrides */
body.dark-mode .main-logo-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 6px 20px rgba(68, 68, 68, 0.3);
}

body.dark-mode .main-logo-circle:hover {
    box-shadow: 0 8px 25px rgba(0, 121, 107, 0.3);
}

body.dark-mode .logo-text {
    background: linear-gradient(45deg, var(--primary-color), #00BFA5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 8px rgba(0, 121, 107, 0.3);
}

body.dark-mode .logo-text-wrapper {
    border-bottom-color: rgba(0, 191, 255, 0.2);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .main-logo-circle {
        width: 60px;
        height: 60px;
    }
    .main-logo-circle i { font-size: 24px; }
    .logo-text { font-size: 1.8rem; }
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    gap: 15px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 121, 107, 0.15), rgba(216, 125, 74, 0.2));
    border: 1.5px solid rgba(0, 121, 107, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s ease;
    color: #5C5C5C;
    font-size: 14px;
    box-shadow: 0 4px 10px rgba(0, 121, 107, 0.15);
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
}

.step.completed .step-circle {
    background: linear-gradient(135deg, #D87D4A, #BF6A3A);
    color: #ffffff;
}

.step-text {
    font-size: 11px;
    color: #5C5C5C;
}

/* Dark Mode Step Text */
body.dark-mode .step-text {
    color: rgba(255, 255, 255, 0.7);
}
body.dark-mode .step.active .step-text {
    color: #ffffff;
    font-weight: 600;
}

.step.active .step-text {
    color: #323232;
    font-weight: 600;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Package Selection */
.package-selection {
    margin: 25px 0;
}

.package-options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 15px;
}

.package-option {
    background: rgba(0, 0, 0, 0.04);
    padding: 15px 10px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
    color: #5C5C5C;
}

.package-option:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.package-option.selected {
    background: rgba(0, 121, 107, 0.1);
    border-color: #00796B;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 121, 107, 0.22);
    position: relative;
}

/* Pricing-inspired package colors */
.package-options .package-option:nth-child(1) { /* Basic - Green */
    background: linear-gradient(145deg, rgba(28, 200, 138, 0.07), rgba(19, 133, 92, 0.12));
    border-color: rgba(28, 200, 138, 0.35);
    box-shadow: 0 6px 16px rgba(28, 200, 138, 0.12);
}

.package-options .package-option:nth-child(2) { /* Standard - Blue */
    background: linear-gradient(145deg, rgba(78, 115, 223, 0.07), rgba(34, 74, 190, 0.12));
    border-color: rgba(78, 115, 223, 0.35);
    box-shadow: 0 6px 16px rgba(78, 115, 223, 0.12);
}

.package-options .package-option:nth-child(3) { /* Premium - Gold */
    background: linear-gradient(145deg, rgba(246, 194, 62, 0.07), rgba(221, 162, 10, 0.12));
    border-color: rgba(246, 194, 62, 0.35);
    box-shadow: 0 6px 16px rgba(246, 194, 62, 0.12);
}

.package-options .package-option:nth-child(1).selected {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(28, 200, 138, 0.32);
    border-color: rgba(28, 200, 138, 0.6);
    background: linear-gradient(120deg, rgba(28, 200, 138, 0.15), rgba(19, 133, 92, 0.25), rgba(28, 200, 138, 0.15));
    background-size: 220% 220%;
    animation: packageGlow 6s ease infinite;
}

.package-options .package-option:nth-child(2).selected {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(78, 115, 223, 0.32);
    border-color: rgba(78, 115, 223, 0.6);
    background: linear-gradient(120deg, rgba(78, 115, 223, 0.15), rgba(34, 74, 190, 0.25), rgba(78, 115, 223, 0.15));
    background-size: 220% 220%;
    animation: packageGlow 6s ease infinite;
}

.package-options .package-option:nth-child(3).selected {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(246, 194, 62, 0.32);
    border-color: rgba(246, 194, 62, 0.6);
    background: linear-gradient(120deg, rgba(246, 194, 62, 0.18), rgba(221, 162, 10, 0.26), rgba(246, 194, 62, 0.18));
    background-size: 220% 220%;
    animation: packageGlow 6s ease infinite;
}

.package-option.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00796B, #004D40);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(0, 121, 107, 0.25);
}

@keyframes packageGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body.dark-mode .package-options .package-option:nth-child(1) {
    background: linear-gradient(145deg, rgba(28, 200, 138, 0.12), rgba(19, 133, 92, 0.16));
    border-color: rgba(28, 200, 138, 0.45);
    box-shadow: 0 6px 16px rgba(28, 200, 138, 0.16);
}

body.dark-mode .package-options .package-option:nth-child(2) {
    background: linear-gradient(145deg, rgba(78, 115, 223, 0.12), rgba(34, 74, 190, 0.16));
    border-color: rgba(78, 115, 223, 0.45);
    box-shadow: 0 6px 16px rgba(78, 115, 223, 0.16);
}

body.dark-mode .package-options .package-option:nth-child(3) {
    background: linear-gradient(145deg, rgba(246, 194, 62, 0.12), rgba(221, 162, 10, 0.16));
    border-color: rgba(246, 194, 62, 0.45);
    box-shadow: 0 6px 16px rgba(246, 194, 62, 0.16);
}

.package-name { font-weight: bold; font-size: 14px; margin-bottom: 4px; }
.package-price { font-size: 13px; color: #5C5C5C; margin-bottom: 3px; }
.package-features { font-size: 11px; color: #999; }

/* Selected package label */
#selectedPackageText {
    font-weight: 800;
    color: #00796B;
}

/* Button Group */
.btn-group { display: flex; gap: 10px; margin-top: 20px; }
.btn-group .btn { flex: 1; }

/* Back to Login Link */
.back-link {
    text-align: center;
    margin-bottom: 20px;
}

.back-link a {
    color: #ffffff;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 50px; /* Capsule Shape */
    background: linear-gradient(45deg, var(--secondary-color), var(--secondary-light));
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(216, 125, 74, 0.2);
}

.back-link a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 125, 74, 0.3);
}

body.dark-mode .back-link a {
    background: linear-gradient(45deg, #D87D4A, #E89A6E);
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 14px 0;
}

.otp-input {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1.5px solid #00796B;
    background: rgba(0, 121, 107, 0.08);
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 121, 107, 0.15);
    background: rgba(0, 0, 0, 0.02);
}

body.dark-mode .otp-input {
    border-color: #2fe0ae;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

body.dark-mode .otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 480px) {
    .otp-inputs { gap: 8px; }
    .otp-input { width: 42px; height: 42px; font-size: 16px; }
}

/* Resend OTP button styling */
#resendOtpBtn {
    background: linear-gradient(135deg, #20c997, #0f9d58);
    color: #ffffff;
    border: none;
    box-shadow: 0 10px 20px rgba(15, 157, 88, 0.2);
}

#resendOtpBtn:hover {
    background: linear-gradient(135deg, #2fe0ae, #0b8651);
    color: #ffffff;
}

#resendOtpBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #8da39e;
    color: #f2f5f5;
    box-shadow: none;
}

body.dark-mode #resendOtpBtn {
    background: linear-gradient(135deg, #2fe0ae, #0b8651);
    color: #e6fbf5;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.dark-mode #resendOtpBtn:disabled {
    background: #4a5a57;
    color: #e0e8e6;
    border-color: rgba(255, 255, 255, 0.14);
}
