/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #4b6a77 0%, #c4c4ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.signup-container {
    /*width: 100%;*/
    max-width: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signup-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.signup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.brand-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    color: #666;
    font-size: 16px;
    font-weight: 400;
}

.otp-subtitle {
    color: #888;
    font-size: 14px;
    margin-top: 5px;
}

/* Back Button */
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: #666;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.back-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

/* Signup Options */
.signup-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.signup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    background: white;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.signup-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.phone-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.google-btn:hover {
    border-color: #db4437;
    color: #db4437;
}

.signup-btn i {
    font-size: 20px;
}

/* Go Back Link */
.go-back-link {
    text-align: center;
    margin-bottom: 20px;
}

.go-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.go-back-link a:hover {
    color: #667eea;
}

.go-back-link a i {
    font-size: 12px;
}

/* Forms */
.phone-form,
.otp-form,
.registration-form {
    margin-bottom: 30px;
}

.input-group input {
    width: 100%;
    padding: 5px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.input-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #999;
}

    .input-group textarea {
        width: 100%;
        padding: 5px 10px;
        border: 2px solid #e1e5e9;
        border-radius: 12px;
        font-size: 16px;
        font-family: inherit;
        transition: all 0.3s ease;
        background: #fafbfc;
    }

        .input-group textarea:focus {
            outline: none;
            border-color: #667eea;
            background: white;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .input-group textarea::placeholder {
            color: #999;
        }

/* Password Group */
.password-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 18px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #667eea;
}

/* OTP Inputs */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 30px;
}

.otp-input {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: #fafbfc;
    transition: all 0.3s ease;
}

.otp-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 15px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 15px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    width: 20px;
    height: 20px;
    background: #fafbfc;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: #667eea;
    border-color: #667eea;
}

.checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    opacity: 1;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Buttons */
.primary-btn {
    width: 100%;
    padding: 10px 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Links */
.signin-link,
.resend-otp {
    text-align: center;
    margin-top: 20px;
}

.signin-link p,
.resend-otp p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.signin-link a,
.resend-otp a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.signin-link a:hover,
.resend-otp a:hover {
    text-decoration: underline;
}

/* Success Content */
.success-content {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 20px;
}

.success-content h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.success-content p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Error Message */
.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #ffcdd2;
}

/* Responsive Design */
@media (max-width: 480px) {
    .signup-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .brand-title {
        font-size: 24px;
    }

    .signup-btn {
        padding: 12px 16px;
        font-size: 15px;
    }

    .input-group input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .otp-input {
        width: 40px;
        height: 45px;
        font-size: 20px;
    }

    .primary-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .signup-card {
        padding: 25px 15px;
    }

    .otp-inputs {
        gap: 6px;
    }

    .otp-input {
        width: 35px;
        height: 40px;
        font-size: 18px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-content {
    animation: fadeInUp 0.5s ease-out;
}

/* Loading State */
.primary-btn:disabled {
    position: relative;
}

.primary-btn:disabled::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Focus States for Accessibility */
.signup-btn:focus,
.input-group input:focus,
.otp-input:focus,
.primary-btn:focus,
.checkbox-label input:focus ~ .checkmark {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white !important;
    }

    .signup-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .option-card {
        margin: 0.5rem;
    }
}

.account-type-cards {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.option-card {
    flex: 1;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.option-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
    box-shadow: 0 4px 16px rgba(0, 123, 255, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.25rem;
}

.card-features li i {
    color: #4caf50;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .account-type-cards {
        flex-direction: column;
        gap: 1rem;
    }

    .option-card {
        padding: 1.5rem;
    }
}
