/* ========================================
   FORM SELECT COMPONENTS
   ======================================== */

.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius-sm, 6px);
    font-size: 14px;
    color: var(--color-text-primary, #333);
    transition: all var(--transition-fast, 0.2s ease);
    font-family: inherit;
    background: var(--color-bg-primary, white);
    cursor: pointer;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-primary, #5865F2);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 88, 101, 242), 0.1);
}

.form-select option {
    color: var(--color-text-primary, #333);
}

/* ========================================
   BUTTON COMPONENTS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm, 6px);
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s ease);
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    transform: skewX(-20deg);
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    border-radius: 6px 6px 0 0;
    pointer-events: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled::before {
    display: none;
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-md {
    padding: 13px 24px;
    font-size: 15px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Button Variants */
.btn-primary {
    background: var(--color-primary, #8b5cf6);
    color: var(--color-text-white, white);
}

.btn-primary:hover:not(:disabled) {
    background: var(--color-primary-dark, #7c3aed);
    box-shadow: var(--shadow-primary, 0 4px 12px rgba(139, 92, 246, 0.4));
}

.btn-primary:active:not(:disabled) {
    box-shadow: var(--shadow-primary-light, 0 2px 6px rgba(139, 92, 246, 0.3));
}

.btn-secondary {
    background: var(--color-secondary, #06b6d4);
    color: var(--color-text-white, white);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--color-secondary-dark, #0891b2);
    box-shadow: var(--shadow-secondary, 0 4px 12px rgba(6, 182, 212, 0.4));
}

.btn-secondary:active:not(:disabled) {
    box-shadow: 0 2px 6px rgba(var(--color-secondary-rgb, 6, 182, 212), 0.3);
}

.btn-success {
    background: var(--color-success, #22c55e);
    color: var(--color-text-white, white);
}

.btn-success:hover:not(:disabled) {
    background: var(--color-success-dark, #16a34a);
    box-shadow: var(--shadow-success, 0 4px 12px rgba(34, 197, 94, 0.4));
}

.btn-success:active:not(:disabled) {
    box-shadow: 0 2px 6px rgba(var(--color-success-rgb, 34, 197, 94), 0.3);
}

.btn-danger {
    background: var(--color-danger, #f43f5e);
    color: var(--color-text-white, white);
}

.btn-danger:hover:not(:disabled) {
    background: var(--color-danger-dark, #e11d48);
    box-shadow: var(--shadow-danger, 0 4px 12px rgba(244, 63, 94, 0.4));
}

.btn-danger:active:not(:disabled) {
    box-shadow: 0 2px 6px rgba(var(--color-danger-rgb, 244, 63, 94), 0.3);
}

/* Social Buttons */
.btn-social {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-social::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.6s ease;
    transform: skewX(-20deg);
    z-index: 1;
}

.btn-social:hover::before {
    left: 100%;
}

.btn-social::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    z-index: 1;
}

.btn-social span {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-social i,
.btn-social svg {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-google {
    background: #fff;
    color: #3c4043;
    border: 2px solid #dadce0;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.15);
}

.btn-google::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.08),
        transparent
    );
}

.btn-google::after {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.03),
        transparent
    );
}

.btn-google:hover {
    border-color: #d2d3d4;
    box-shadow: 0 4px 12px rgba(60, 64, 67, 0.25);
    background: #f8f9fa;
}

.btn-google:active {
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.2);
}

.btn-facebook {
    background: #1877f2;
    color: white;
    border: 2px solid #1877f2;
    box-shadow: 0 2px 4px rgba(24, 119, 242, 0.25);
}

.btn-facebook:hover {
    background: #166fe5;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.4);
}

.btn-facebook:active {
    box-shadow: 0 2px 6px rgba(24, 119, 242, 0.3);
}

.btn-social i {
    font-size: 18px;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

/* Loading Spinner */
.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ========================================
   FORM COMPONENTS
   ======================================== */

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

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-border, #ddd);
    border-radius: var(--radius-sm, 6px);
    font-size: 14px;
    color: var(--color-text-primary, #333);
    transition: all var(--transition-fast, 0.2s ease);
    font-family: inherit;
    background: var(--color-bg-primary, white);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary, #8b5cf6);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 139, 92, 246), 0.1);
}

.form-input::placeholder {
    color: #999;
}

.form-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.form-input.error {
    border-color: #dc3545;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.form-help {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* Input with Icon */
.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 14px;
    transition: color 0.2s ease;
}

.input-icon:hover {
    color: #333;
}

.input-with-icon {
    padding-right: 45px;
}

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}

.form-checkbox input,
.form-radio input {
    width: auto;
    margin: 0;
    cursor: pointer;
}


/* ========================================
   TAB COMPONENTS
   ======================================== */

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    background: var(--color-bg-light, #f5f5f5);
    border: 1px solid var(--color-border, #e0e0e0);
    border-radius: var(--radius-sm, 6px);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted, #666);
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s ease);
    text-align: center;
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transition: left 0.6s ease;
    transform: skewX(-20deg);
}

.tab-btn:hover::before {
    left: 100%;
}

.tab-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    border-radius: 6px 6px 0 0;
    pointer-events: none;
}

.tab-btn.active {
    background: var(--color-primary, #8b5cf6);
    border-color: var(--color-primary, #8b5cf6);
    color: var(--color-text-white, white);
    box-shadow: var(--shadow-md, 0 2px 8px rgba(139, 92, 246, 0.3));
}

.tab-btn.active::after {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

.tab-btn:hover {
    background: var(--color-bg-secondary, #e8e9ea);
    border-color: var(--color-primary, #8b5cf6);
}

.tab-btn.active:hover {
    background: var(--color-primary-dark, #7c3aed);
    border-color: var(--color-primary-dark, #7c3aed);
}


/* ========================================
   DIVIDER COMPONENT
   ======================================== */

.divider {
    text-align: center;
    color: #999;
    font-size: 13px;
    margin: 25px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background: #e0e0e0;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}


/* ========================================
   LINK COMPONENTS
   ======================================== */

.link-primary {
    color: var(--color-primary, #8b5cf6);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast, 0.2s ease);
}

.link-primary:hover {
    color: var(--color-primary-dark, #7c3aed);
    text-decoration: underline;
}

.link-secondary {
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.link-secondary:hover {
    color: #333;
    text-decoration: underline;
}


/* ========================================
   SOCIAL BUTTONS GROUP
   ======================================== */

.social-buttons {
    display: flex;
    gap: 12px;
}

@media (max-width: 480px) {
    .social-buttons {
        flex-direction: column;
    }
}


/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

/* ========================================
   OTP VERIFICATION STYLES
   ======================================== */

.timer-section {
    margin: 16px 0;
    text-align: center;
}

.timer-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 8px;
    font-weight: 500;
    color: var(--color-text-primary, #333);
    margin-bottom: 12px;
}

.timer-display i {
    color: var(--color-primary, #5865F2);
    font-size: 16px;
}

.timer-display span {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary, #5865F2);
}

.reset_opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-primary, #5865F2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reset_opt:hover {
    background: var(--color-primary-dark, #4c5bd4);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.reset_opt i {
    font-size: 12px;
}

/* Security Features */
.security-features {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-item i::before {
    display: block;
    line-height: 1;
}

.feature-item span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    line-height: 1.4;
}

/* OTP Input Enhancement */
#verification {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

#verification:focus {
    letter-spacing: 3px;
}

/* Alert Styling */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.alert-danger {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

/* Form Options */
.form-options {
    text-align: center;
    margin-top: 24px;
}

.form-options .link-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-secondary, #666);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.form-options .link-primary:hover {
    color: var(--color-primary, #5865F2);
    text-decoration: none;
}

.form-options .link-primary i {
    font-size: 12px;
}

/* ========================================
   PASSWORD RESET SPECIFIC STYLES
   ======================================== */

.phone-display {
    position: relative;
    display: flex;
    align-items: center;
}

.phone-display-input {
    background-color: var(--color-bg-secondary, #f8f9fa);
    color: var(--color-text-secondary, #666);
    cursor: not-allowed;
    border: 1px solid var(--color-border-light, #e9ecef);
}

.phone-display-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary, #666);
    font-size: 14px;
}

/* Password strength indicator for reset page */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* Password match indicator */
.password-match {
    font-size: 12px;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}

.password-match i {
    font-size: 10px;
}

/* Form validation states */
.form-input.error {
    border-color: #ff4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.1);
}

.form-input.success {
    border-color: #00cc44;
    box-shadow: 0 0 0 3px rgba(0, 204, 68, 0.1);
}

