/**
 * Signup Page Styles
 * ===================
 */

/* Page Layout */
.signup-page {
    min-height: 100vh;
    background: #f8f9fa;
}

.signup-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Home button */
.home-floating-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 100;
    background: #fff;
    color: #4e486a;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-floating-btn:hover {
    background: #0187C5;
    color: #fff;
    text-decoration: none;
}

.home-floating-btn i {
    font-size: 14px;
}

.home-floating-btn .btn-text {
    display: inline;
}

/* Left side - Showcase */
.signup-showcase {
    flex: 0 0 45%;
    background: #07004a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.signup-showcase::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.signup-showcase::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.showcase-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 450px;
}

.showcase-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
}

.showcase-content h2 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

.showcase-content p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.showcase-image {
    max-width: 100%;
    border-radius: 8px;
}

.showcase-features {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.showcase-feature {
    display: flex;
    align-items: center;
    background: #0BC28B;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
}

.showcase-feature i {
    margin-right: 6px;
}

/* Right side - Form Container */
.signup-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 60px;
    overflow-y: auto;
    background: #fff;
}

.signup-form-inner {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
}

.signup-header {
    margin-bottom: 28px;
}

.signup-header-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.signup-header h1 {
    font-size: 26px;
    font-weight: 600;
    color: #4e486a;
    margin-bottom: 0;
}

.signup-header .trial-text {
    color: #0187C5;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-header p {
    font-size: 14px;
    color: #797687;
    margin: 0;
}

/* Footer adjustments */
.account.inner-page footer.footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
}

.account.inner-page footer.footer .footer-content,
.account.inner-page footer.footer .footer-content p,
.account.inner-page footer.footer .footer-content a,
.account.inner-page footer.footer .footer-content h5,
.account.inner-page footer.footer .footer-content ul li {
    color: #666 !important;
}

.account.inner-page footer.footer .footer-content a:hover {
    color: #0187C5 !important;
}

.account.inner-page footer.footer .footer-content h5 {
    color: #4e486a !important;
    font-weight: 600;
}

/* Compare Plans Modal */
#comparePlansModal .modal-content {
    border-radius: 16px;
    border: none;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#comparePlansModal .modal-header {
    border-bottom: 1px solid #eee;
    padding: 16px 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#comparePlansModal .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #4e486a;
    margin: 0;
}

#comparePlansModal .modal-header .close {
    color: #999;
    font-size: 20px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    line-height: 1;
    opacity: 1;
}

#comparePlansModal .modal-header .close:hover {
    color: #4e486a;
}

#comparePlansModal .modal-body {
    padding: 0;
}

/* Plan Headers */
#comparePlansModal .compare-plans-header {
    display: flex;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

#comparePlansModal .compare-plan-col {
    flex: 1;
    padding: 20px 16px;
    text-align: center;
}

#comparePlansModal .compare-plan-col.feature-col {
    flex: 1.5;
    text-align: left;
}

#comparePlansModal .compare-plan-col.plan-col {
    position: relative;
    border-left: 1px solid #e5e7eb;
}

#comparePlansModal .compare-plan-col.popular,
#comparePlansModal .compare-row .plan-col:last-child {
    background: #f0fff4;
}

#comparePlansModal .popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: -20px;
    background: #0BC28B;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#comparePlansModal .popular-badge .badge-icon {
    display: none;
}

#comparePlansModal .popular-badge .badge-text {
    display: inline;
}

#comparePlansModal .plan-name {
    font-size: 16px;
    font-weight: 700;
    color: #4e486a;
    margin: 0 0 8px 0;
}

#comparePlansModal .plan-price .price {
    font-size: 20px;
    font-weight: 700;
    color: #0187C5;
}

#comparePlansModal .plan-price .period {
    font-size: 10px;
    color: #888;
}

/* Features List */
#comparePlansModal .compare-features {
    max-height: 400px;
    overflow-y: auto;
}

#comparePlansModal .compare-row {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.15s ease;
}

#comparePlansModal .compare-row:hover {
    background: #f8fafc;
}

#comparePlansModal .compare-row:last-child {
    border-bottom: none;
}

#comparePlansModal .compare-row .compare-plan-col {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#comparePlansModal .compare-row .feature-col {
    justify-content: flex-start;
    font-size: 13px;
    font-weight: 500;
    color: #4e486a;
    gap: 10px;
}

#comparePlansModal .compare-row .plan-col {
    border-left: 1px solid #f0f0f0;
}

#comparePlansModal .feature-icon {
    font-size: 18px;
    color: #0187C5;
    opacity: 0.7;
}

#comparePlansModal .feature-value {
    font-size: 13px;
    font-weight: 600;
    color: #4e486a;
}

#comparePlansModal .feature-value.value-unlimited {
    color: #0BC28B;
}

#comparePlansModal .feature-value.value-limited {
    color: #333;
}

#comparePlansModal .check-yes {
    font-size: 22px;
    color: #0BC28B;
}

#comparePlansModal .check-no {
    font-size: 22px;
    color: #e74c3c;
}

#comparePlansModal .modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 6px 12px;
    background: #f8fafc;
    justify-content: center;
}

#comparePlansModal .btn-secondary {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #4e486a;
    padding: 6px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

#comparePlansModal .btn-secondary:hover {
    background: #4e486a;
    border-color: #4e486a;
    color: #fff;
}

/* Modal Responsive */
@media (max-width: 768px) {
    #comparePlansModal .modal-dialog {
        margin: 10px;
    }

    #comparePlansModal .compare-plan-col {
        padding: 12px 8px;
    }

    #comparePlansModal .compare-plan-col.feature-col {
        flex: 1.2;
        font-size: 11px;
    }

    #comparePlansModal .compare-row .feature-col {
        font-size: 11px;
        line-height: 1.5;
    }

    #comparePlansModal .plan-name {
        font-size: 13px;
    }

    #comparePlansModal .plan-price .price {
        font-size: 14px;
    }

    #comparePlansModal .feature-icon {
        display: none;
    }

    #comparePlansModal .compare-row .feature-col {
        font-size: 12px;
    }

    #comparePlansModal .check-yes,
    #comparePlansModal .check-no {
        font-size: 18px;
    }

    #comparePlansModal .popular-badge {
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0;
        padding: 5px;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #comparePlansModal .popular-badge .badge-text {
        display: none;
    }

    #comparePlansModal .popular-badge .badge-icon {
        display: flex;
        font-size: 10px;
        line-height: 1;
    }
}

/**
 * Signup Form Styles
 * ===================
 */

.signup-form .form-group {
    margin-bottom: 10px;
}

.signup-form .form-row {
    display: flex;
    margin: 0 -5px 10px -5px;
}

.signup-form .form-row .form-group {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    padding: 0 5px;
}

.signup-form .form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4e486a;
    margin-bottom: 4px;
}

.signup-form .form-label .optional-text {
    font-weight: 400;
    color: #999;
    font-size: 12px;
}

.signup-form .form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    color: #4e486a;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.signup-form .form-input:focus {
    outline: none;
    border-color: #0187C5;
    box-shadow: 0 0 0 3px rgba(1, 135, 197, 0.1);
}

.signup-form .form-input::placeholder {
    color: #aaa;
}

/* Domain input */
.signup-form .domain-group {
    display: flex;
    align-items: stretch;
}

.signup-form .domain-group .form-input {
    border-radius: 5px 0 0 5px;
    border-right: none;
}

.signup-form .domain-group .form-input:focus {
    border-right: none;
}

.signup-form .domain-suffix {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-left: none;
    border-radius: 0 5px 5px 0;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

/* Referral badge */
.signup-form .referral-badge {
    background: #e8f4fd;
    border: 1px solid #0187C5;
    color: #0187C5;
    padding: 8px 12px;
    border-radius: 5px;
    margin-bottom: 12px;
    font-size: 13px;
}

.signup-form .referral-badge i {
    margin-right: 6px;
}

/* Pricing Section */
.signup-form .pricing-section {
    margin-bottom: 12px;
}

.signup-form .pricing-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.signup-form .pricing-section-header .form-label {
    margin-bottom: 0;
}

.signup-form .compare-link {
    font-size: 12px;
    color: #0187C5;
    cursor: pointer;
    text-decoration: none;
}

.signup-form .compare-link:hover {
    text-decoration: underline;
}

.signup-form .billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
    background: #f5f5f5;
    border-radius: 5px;
    padding: 3px;
}

.signup-form .billing-toggle button {
    flex: 1;
    padding: 5px 14px;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.signup-form .billing-toggle button.active {
    background: #fff;
    color: #0187C5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.signup-form .pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.signup-form .pricing-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    position: relative;
    min-height: 38px;
}

.signup-form .pricing-card:hover {
    border-color: #0187C5;
}

.signup-form .pricing-card.selected {
    border-color: #0187C5;
    background: #f0f9ff;
}

.signup-form .pricing-card .plan-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signup-form .pricing-card .plan-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.signup-form .pricing-card.selected .plan-radio {
    border-color: #0187C5;
    background: #0187C5;
}

.signup-form .pricing-card.selected .plan-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
}

.signup-form .pricing-card .plan-name {
    font-size: 14px;
    font-weight: 500;
    color: #4e486a;
}

.signup-form .pricing-card .plan-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.signup-form .pricing-card .plan-price .amount {
    font-size: 15px;
    font-weight: 600;
    color: #0187C5;
}

.signup-form .pricing-card .plan-price .amount-striked {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    text-decoration: line-through;
}

.signup-form .pricing-card .plan-price .period {
    font-size: 12px;
    color: #888;
}

.signup-form .pricing-card .plan-price .free-label {
    font-size: 14px;
    font-weight: 600;
    color: #0BC28B;
}

.signup-form .pricing-card .discount-badge {
    background: #0BC28B;
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 5px 5px;
    border-radius: 2px;
    margin-left: 5px;
    line-height: 1;
    vertical-align: middle;
}

.signup-form .pricing-notice {
    font-size: 11px;
    color: #888;
    margin-top: 6px;
    text-align: center;
}

.signup-form .pricing-notice i {
    margin-right: 4px;
}

/* reCAPTCHA */
.signup-form .recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 12px 0;
    transform: scale(0.85);
    transform-origin: center;
}

/* Submit button */
.signup-form .btn-submit {
    width: 100%;
    padding: 10px 18px;
    border: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #0187C5;
    color: #fff;
}

.signup-form .btn-submit:hover:not(:disabled) {
    background: #006695;
}

.signup-form .btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Login link */
.signup-form .login-link {
    text-align: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

.signup-form .login-link a {
    color: #0187C5;
    font-weight: 500;
    text-decoration: none;
}

.signup-form .login-link a:hover {
    text-decoration: underline;
}

/* Login page specific */
.signup-page.login-page {
    min-height: auto;
}

.login-page .signup-wrapper {
    min-height: auto;
}

.showcase-content-login {
    padding-top: 120px;
}

@media (max-width: 992px) {
    .showcase-content-login {
        padding-top: 40px;
    }
}

.signup-form .login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.signup-form .remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.signup-form .remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #0187C5;
    cursor: pointer;
}

.signup-form .forgot-link {
    font-size: 13px;
    color: #0187C5;
    text-decoration: none;
}

.signup-form .forgot-link:hover {
    text-decoration: underline;
}

/**
 * Responsive Styles
 * ===================
 */

@media (max-width: 992px) {
    .signup-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .signup-showcase {
        flex: none;
        padding: 40px 30px;
    }

    .showcase-content h2 {
        font-size: 24px;
    }

    .showcase-image {
        max-width: 350px;
    }

    .signup-form-container {
        padding: 30px 25px;
    }
}

@media (max-width: 768px) {
    .home-floating-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        top: 15px;
        left: 15px;
        justify-content: center;
    }

    .home-floating-btn .btn-text {
        display: none;
    }

    .home-floating-btn i {
        font-size: 18px;
        margin: 0;
    }

    .signup-showcase {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    .signup-form .form-row {
        flex-direction: column;
        gap: 0;
    }

    .signup-showcase {
        padding: 60px 20px 30px 20px;
    }

    .showcase-content h2 {
        font-size: 20px;
    }

    .showcase-content p {
        font-size: 14px;
    }

    .showcase-image {
        max-width: 280px;
    }

    .showcase-features {
        gap: 8px;
    }

    .showcase-feature {
        font-size: 10px;
        padding: 5px 10px;
    }

    .showcase-feature i {
        font-size: 12px;
        margin-right: 4px;
    }

    .signup-form-container {
        padding: 25px 20px;
    }

    .signup-header h1 {
        font-size: 22px;
    }

    .signup-header .trial-text {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .signup-form .pricing-card {
        padding: 7px 10px;
    }

    .signup-form .pricing-card .plan-name {
        font-size: 13px;
    }

    .signup-form .pricing-card .plan-price .amount {
        font-size: 14px;
    }

    .signup-form .recaptcha-container {
        transform: scale(0.8);
    }
}
