/* Signup Page Styles - Matching Reference Design */

:root {
    --primary-red: #DC143C;
    --dark-red: #B71C1C;
    --purple: #7B2CBF;
    --light-purple: #9D4EDD;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --text-dark: #333333;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

/* Prevent Bootstrap form-control from overflowing */
.signup-card .form-control {
    max-width: 100%;
}

.signup-container {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    min-height: 100vh;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Single centered wrapper - no Bootstrap grid to avoid overflow */
.signup-wrapper {
    width: 100%;
    max-width: 440px;
    box-sizing: border-box;
    padding: 0;
}

.signup-card {
    background: #2c0f61;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Back Button */
.back-button a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-button a:hover {
    opacity: 0.8;
}

.back-button i {
    font-size: 18px;
}

/* Title Section */
.title-section {
    text-align: left;
    min-width: 0;
}

.signup-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 5px;
}

.signup-subtitle {
    font-size: 16px;
    color: #ffffff;
    margin: 0;
    word-wrap: break-word;
}

/* Country Selector */
.country-selector {
    margin-top: 20px;
}

.country-tabs {
    width: 100%;
    min-width: 0;
    background: var(--light-gray);
    border-radius: 10px;
    padding: 4px;
    border: none;
    display: flex;
}

.country-tabs .btn {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.country-tabs .btn.active {
    background: var(--white);
    color: var(--primary-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid var(--primary-red);
}

.country-tabs .btn:hover:not(.active) {
    color: var(--primary-red);
}

/* Form */
.signup-form {
    width: 100%;
    min-width: 0;
}

/* Form Inputs */
.form-group {
    position: relative;
    min-width: 0;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #de0029;
    font-size: 18px;
    z-index: 2;
}

/* OTP row: center icon vertically in the card, match button height to input */
.signup-otp-input-wrap .input-icon.signup-otp-icon {
    top: 50%;
    transform: translateY(-50%);
}

.signup-otp-row .signup-send-otp-btn {
    align-self: stretch;
    height: auto;
    min-height: 0;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-radius: 10px;
}

.signup-input {
    padding: 12px 15px 12px 45px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    background: var(--white);
    color: var(--text-dark);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.signup-input:focus {
    border-color: var(--purple);
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
}

.signup-input::placeholder {
    color: #999;
}

/* Resend Button */
.resend-btn {
    position: absolute;
    right: 10px;
    background: var(--primary-red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    min-height: 36px; /* Touch target size */
    -webkit-tap-highlight-color: transparent;
}

.resend-btn:hover:not(:disabled) {
    background: var(--dark-red);
    transform: translateY(-1px);
}

.resend-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Sign up Button */
.signup-btn {
    background: #071a78;
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(7, 26, 120, 0.4);
    transition: all 0.3s ease;
    min-height: 44px; /* Touch target size */
    -webkit-tap-highlight-color: transparent;
    width: 100%;
}

.signup-btn:hover {
    background: #0a2288;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(7, 26, 120, 0.5);
}

.signup-btn:active {
    transform: translateY(0);
}

/* Footer Links */
.footer-links {
    margin-top: 20px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--dark-red);
    text-decoration: underline;
}

/* Logo Section */
.logo-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.logo {
    color:#ffffff;
    font-size: 18px;
    font-weight: 700;
}

.copyright-text {
    font-size: 11px;
    color: #ffffff;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */

/* Mobile Devices (up to 576px) */
@media (max-width: 576px) {
    .signup-container {
        padding: 12px;
    }

    .signup-wrapper {
        max-width: 100%;
    }

    .signup-card {
        padding: 20px;
        border-radius: 15px;
    }

    .signup-title {
        font-size: 24px;
    }

    .signup-subtitle {
        font-size: 13px;
    }

    .signup-input {
        font-size: 14px;
        padding: 10px 12px 10px 40px;
    }

    .input-icon {
        font-size: 16px;
        left: 12px;
    }

    .signup-btn {
        font-size: 16px;
        padding: 12px;
    }

    .resend-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .country-tabs .btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .copyright-text {
        font-size: 10px;
    }

    .logo {
        font-size: 16px;
    }
}

/* Tablet Devices (577px to 992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .signup-container {
        padding: 24px;
    }

    .signup-wrapper {
        max-width: 420px;
    }

    .signup-card {
        padding: 35px;
    }

    .signup-title {
        font-size: 30px;
    }

    .signup-subtitle {
        font-size: 15px;
    }
}

/* Desktop Devices (993px and above) */
@media (min-width: 993px) {
    .signup-container {
        padding: 32px;
    }

    .signup-wrapper {
        max-width: 440px;
    }

    .signup-card {
        padding: 40px;
    }

    .signup-title {
        font-size: 32px;
    }

    .signup-subtitle {
        font-size: 16px;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .signup-wrapper {
        max-width: 480px;
    }

    .signup-card {
        padding: 50px;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 992px) and (orientation: landscape) {
    .signup-container {
        padding: 12px;
        align-items: flex-start;
    }

    .signup-card {
        padding: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
}
