/* ============================================
   CallCheck Flash-Call Auth Styles
   raspilim.com — accent: #00BCD4 / #26c6da
   ============================================ */

/* --- Tabs --- */
.cc-auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-bottom: 2px solid #eee;
}

.cc-auth-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
    white-space: nowrap;
}

.cc-auth-tab:hover {
    color: #666;
}

.cc-auth-tab.active {
    color: #00BCD4;
}

.cc-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00BCD4;
    border-radius: 2px 2px 0 0;
}

/* --- Panels --- */
.cc-auth-panel {
    display: none;
}

.cc-auth-panel.active {
    display: block;
}

/* --- Step 1: Phone + Name form --- */
.cc-form-group {
    margin-bottom: 16px;
}

.cc-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.cc-form-group label .cc-required {
    color: #f44336;
}

.cc-input {
    width: 100%;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.cc-input:focus {
    border-color: #00BCD4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

.cc-input::placeholder {
    color: #bbb;
}

/* --- Call Button --- */
.cc-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #00BCD4, #0097A7);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
    margin-top: 8px;
}

.cc-call-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 188, 212, 0.4);
}

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

.cc-call-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cc-call-btn .cc-btn-icon {
    font-size: 20px;
    line-height: 1;
}

/* Loading state */
.cc-call-btn.cc-loading .cc-btn-icon {
    animation: cc-spin 1s linear infinite;
}

@keyframes cc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Step 2: Pin code --- */
.cc-step2-header {
    text-align: center;
    margin-bottom: 24px;
}

.cc-step2-phone {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.cc-step2-hint {
    font-size: 14px;
    color: #777;
    line-height: 1.5;
}

/* Pin fields */
.cc-pin-fields {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cc-pin-input {
    width: 56px;
    height: 56px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    background: #fafafa;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -moz-appearance: textfield;
}

.cc-pin-input::-webkit-outer-spin-button,
.cc-pin-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cc-pin-input:focus {
    border-color: #00BCD4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.1);
}

/* Pin success state */
.cc-pin-fields.cc-success .cc-pin-input {
    border-color: #4CAF50;
    background: #E8F5E9;
    color: #2E7D32;
}

/* Verifying state */
.cc-pin-fields.cc-verifying .cc-pin-input {
    opacity: 0.6;
    pointer-events: none;
}

/* --- Timer --- */
.cc-timer-wrap {
    text-align: center;
    margin-bottom: 16px;
}

.cc-timer-text {
    font-size: 13px;
    color: #999;
}

.cc-retry-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: #00BCD4;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.cc-retry-link:hover {
    color: #0097A7;
    text-decoration: underline;
}

/* --- Change phone link --- */
.cc-change-phone {
    display: block;
    text-align: center;
    font-size: 14px;
    color: #00BCD4;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
}

.cc-change-phone:hover {
    color: #0097A7;
}

.cc-change-phone::before {
    content: '\2190';
    margin-right: 4px;
}

/* --- Error message --- */
.cc-error {
    background: #FFF3F3;
    border: 1px solid #FFCDD2;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #D32F2F;
    text-align: center;
    margin-bottom: 16px;
}

/* --- Shake animation --- */
@keyframes cc-shake {
    0%, 100% { transform: translateX(0); }
    15%, 55% { transform: translateX(-6px); }
    35%, 75% { transform: translateX(6px); }
}

.cc-pin-fields.cc-shake {
    animation: cc-shake 0.5s ease-out;
}

.cc-pin-fields.cc-shake .cc-pin-input {
    border-color: #f44336;
}

/* --- Fade in animation --- */
.cc-fade-in {
    animation: cc-fadeIn 0.3s ease;
}

@keyframes cc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .cc-pin-input {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }

    .cc-pin-fields {
        gap: 8px;
    }

    .cc-auth-tab {
        font-size: 13px;
        padding: 10px 6px;
    }
}
