/* assets/css/auth.css — matches login/register tokens */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&display=swap');

body {
    background-color: #f1f5f9;
    background-image: linear-gradient(180deg, #eef2ff 0%, #f8fafc 50%, #f1f5f9 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'DM Sans', system-ui, sans-serif;
    color: #334155;
}

.auth-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    color: #2d3436;
    /* Dark grey */
    font-weight: 700;
    font-size: 28px;
    margin: 0;
}

.auth-header p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3436;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #4f6fff;
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #f1f2f6;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fdfdfd;
    box-sizing: border-box;
    /* Fix padding issue */
}

/* Input Icon Wrapper Removed */
/* .input-icon-wrapper { ... } */

/* .input-icon-wrapper input { padding-left: 45px; } - Removed */

/* Dividers */
.user-details-divider,
.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.user-details-divider::before,
.user-details-divider::after,
.divider-or::before,
.divider-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dfe6e9;
}

.user-details-divider span,
.divider-or span {
    padding: 0 10px;
}

.btn-submit {
    background-color: #4f6fff;
    /* Match theme */
    box-shadow: 0 5px 15px rgba(61, 90, 254, 0.3);
}

.btn-submit:hover {
    background-color: #3d5aee;
}

.form-group input:focus {
    border-color: #4f6fff;
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.1);
}

/* Professional select / dropdown */
.form-group select {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e8ecef;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: #2d3436;
    background: #fdfdfd 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='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 14px center;
    background-color: #fdfdfd;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}
.form-group select:hover {
    border-color: #d5dce0;
}
.form-group select:focus {
    border-color: #4f6fff;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.1);
}
.form-group select option {
    padding: 10px;
    font-weight: 400;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #4f6fff;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    box-shadow: 0 5px 15px rgba(61, 90, 254, 0.3);
}

.btn-submit:hover {
    background: #3d5aee;
    transform: translateY(-2px);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-vendor-login {
    display: block;
    width: 100%;
    padding: 12px 14px;
    margin-top: 12px;
    background: transparent;
    color: #4f6fff;
    border: 2px solid #4f6fff;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s;
    box-sizing: border-box;
}

.btn-vendor-login:hover {
    background: #4f6fff;
    color: white;
    transform: translateY(-2px);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
    color: #636e72;
}

.auth-footer a {
    color: #4f6fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer a:hover {
    color: #3d5aee;
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
}

.forgot-password a {
    color: #95a5a6;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password a:hover {
    color: #4f6fff;
}

/* Alert Styles */
.alert {
    padding: 12px 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.alert-error {
    background: #fdeaea;
    color: #e74c3c;
    border: 1px solid #fadbd8;
}

.alert-success {
    background: #eef2ff;
    color: #4f6fff;
    border: 1px solid #c5cae9;
}

/* OTP Timer & Links */
.otp-timer {
    text-align: center;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
}

.resend-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.resend-link {
    color: #4f6fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

.voice-link {
    color: #3498db;
}

/* Input Group Button (for Phone + Send OTP) */
.input-group-btn {
    display: flex;
    gap: 10px;
}

.btn-small {
    padding: 0 15px;
    font-size: 14px;
    white-space: nowrap;
    width: auto;
    margin-top: 0;
    height: 46px;
    /* Match input height */
}

.feedback-msg {
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

.feedback-msg.error {
    color: #e74c3c;
}

.feedback-msg.success {
    color: #4f6fff;
}

/* Success Modal Redesign */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 380px;
    border-radius: 24px;
    overflow: visible;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-header-curve {
    background: linear-gradient(135deg, #4f6fff 0%, #3d5aee 100%);
    height: 100px;
    border-radius: 24px 24px 50% 50% / 24px 24px 40px 40px;
    position: relative;
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.success-icon-large {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(61, 90, 254, 0.3);
    position: absolute;
    bottom: -40px;
    border: 5px solid white;
}

.success-icon-large i {
    font-size: 40px;
    color: #4f6fff;
    animation: checkPop 0.5s 0.3s backwards;
}

@keyframes checkPop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-body {
    padding: 0 30px 40px;
}

.modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 5px;
}

.modal-subtitle {
    font-size: 15px;
    color: #636e72;
    margin: 0 0 25px;
}

.user-details-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eee;
    text-align: left;
}

.card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-row:first-child {
    padding-top: 0;
}

.card-label {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 500;
}

.card-value {
    font-size: 15px;
    color: #2d3436;
    font-weight: 600;
    text-align: right;
    word-break: break-word;
    max-width: 65%;
}

.highlight-id {
    color: #4f6fff;
    font-weight: 700;
    background: rgba(61, 90, 254, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
}

.screenshot-hint {
    font-size: 12px;
    color: #b2bec3;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-login-now {
    background: linear-gradient(135deg, #4f6fff 0%, #3d5aee 100%);
    color: white;
    text-decoration: none;
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 8px 15px rgba(61, 90, 254, 0.25);
}

.btn-login-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(61, 90, 254, 0.35);
}

.btn-login-now i {
    margin-left: 8px;
    font-size: 14px;
}