/* Signup-specific styles — matches dealerpro.io design */

/* ---- Dealer Pro brand overrides for signup page ---- */
.signup-body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
}

/* Import Outfit font */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---- Left welcome panel — green gradient ---- */
.signup-wrapper .welcome-section {
    background: linear-gradient(135deg, #009644 0%, #18adc0 100%);
}

.signup-wrapper .welcome-logo h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.signup-wrapper .welcome-content h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.signup-wrapper .feature-icon {
    border-radius: 12px;
}

.signup-wrapper .feature-icon svg {
    stroke: #009644;
}

.signup-wrapper .feature-text h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

/* ---- Right form panel ---- */
.signup-wrapper .login-header h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

.signup-wrapper .login-header p {
    color: #64748b;
}

/* ---- Form inputs — 12px radius, green focus ---- */
.signup-wrapper .form-group input {
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.signup-wrapper .form-group input:focus {
    border-color: #009644;
    box-shadow: 0 0 0 3px rgba(0, 150, 68, 0.1);
}

.signup-wrapper .form-group input::placeholder {
    color: #94a3b8;
}

.signup-wrapper .form-group label {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #0f172a;
}

/* ---- Primary button — green #009644 ---- */
.signup-wrapper .btn-primary,
.signup-wrapper .btn-login {
    font-family: 'Outfit', sans-serif;
    background: #009644;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 150, 68, 0.2);
    transition: all 0.3s ease;
}

.signup-wrapper .btn-primary:hover,
.signup-wrapper .btn-login:hover {
    background: #00a84d;
    box-shadow: 0 8px 30px rgba(0, 150, 68, 0.3);
    transform: translateY(-1px);
}

.signup-wrapper .btn-primary:active,
.signup-wrapper .btn-login:active {
    background: #008a3e;
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 150, 68, 0.2);
}

.signup-wrapper .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---- Link buttons — green ---- */
.signup-wrapper .btn-link {
    background: none;
    border: none;
    color: #009644;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    padding: var(--space-2) 0;
    transition: color 0.2s ease;
}

.signup-wrapper .btn-link:hover {
    color: #00a84d;
    text-decoration: underline;
}

.signup-wrapper .btn-link:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

/* ---- Login footer link — green ---- */
.signup-wrapper .login-footer a {
    color: #009644;
    font-weight: 600;
}

.signup-wrapper .login-footer a:hover {
    color: #00a84d;
}

/* ---- Divider ---- */
.signup-wrapper .login-divider span {
    font-family: 'Outfit', sans-serif;
    color: #64748b;
}

/* ---- Card shadow ---- */
.signup-wrapper {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.08), 0 8px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
}

/* ---- Field validation errors ---- */
.field-error {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 2px;
    font-family: 'Outfit', sans-serif;
}

.input-error {
    border-color: #ef4444 !important;
}

.input-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ---- OTP Inputs ---- */
.otp-container {
    margin: var(--space-8) 0;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: white;
    color: #0f172a;
    transition: all 0.2s ease;
    outline: none;
}

.otp-input:focus {
    border-color: #009644;
    box-shadow: 0 0 0 3px rgba(0, 150, 68, 0.15);
}

.otp-input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
}

.otp-error-message {
    display: block !important;
    text-align: center;
    margin-top: var(--space-3);
}

/* ---- OTP Timer ---- */
.otp-timer {
    text-align: center;
    font-family: 'Outfit', sans-serif;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: var(--space-4);
}

/* ---- OTP Actions ---- */
.otp-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-4);
}

/* ---- Google signup hint ---- */
.google-signup-hint {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    color: #f59e0b;
    text-align: center;
    margin-top: var(--space-2);
}

/* ---- Google button container ---- */
#google-signup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#google-signup-container .g_id_signin {
    width: 100%;
}

/* ---- Compact form gap ---- */
#signupForm.login-form {
    gap: var(--space-3);
}

#signupForm .form-group {
    gap: var(--space-1);
}

/* ---- Step 2 alert container ---- */
#otp-alert-container {
    margin-top: var(--space-4);
}

#otp-alert-container .alert-container {
    margin-bottom: 0;
    border-radius: 12px;
}

/* ---- OTP Waiting message ---- */
.otp-waiting {
    text-align: center;
    padding: var(--space-4) var(--space-3);
    color: #009644;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: var(--space-4);
}

.otp-waiting i {
    margin-right: var(--space-2);
}

/* ---- Step 3: Set Password ---- */
#signup-step3 .login-form {
    gap: var(--space-3);
}

#signup-step3 .form-group {
    gap: var(--space-1);
}

#step3-alert-container {
    margin-top: var(--space-4);
}

#step3-alert-container .alert-container {
    margin-bottom: 0;
    border-radius: 12px;
}

/* ---- Password input ---- */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #94a3b8;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #64748b;
}

/* ---- Select dropdown ---- */
select.form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}
