/**
 * Campaign CSS
 * Custom styles for auth pages and campaign branding
 */

/* PIN Input Container */
.pin-container {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* PIN Input Boxes */
.pin-input {
    width: 60px;
    height: 70px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.pin-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

.pin-input::placeholder {
    color: #adb5bd;
}

/* Mobile responsive PIN inputs */
@media (max-width: 576px) {
    .pin-input {
        width: 50px;
        height: 60px;
        font-size: 24px;
    }

    .pin-container {
        gap: 8px;
    }
}

/* Shake animation for errors */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Timer warning state */
.timer-warning {
    color: #dc3545 !important;
    font-weight: bold;
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
}

.card-body {
    padding: 2rem;
}

/* Button styling */
.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Link styling */
a {
    color: #0d6efd;
}

a:hover {
    color: #0a58ca;
}

/* Form styling */
.form-control {
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

/* Alert styling */
.alert {
    border-radius: 8px;
    border: none;
}

/* Loading spinner in buttons */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Success checkmark animation */
@keyframes checkmark {
    0% {
        stroke-dashoffset: 50;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

.checkmark {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
    animation: checkmark 0.5s ease-out forwards;
}

/* Campaign logo */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Footer links */
.text-muted a {
    color: inherit;
}

.text-muted a:hover {
    color: #6c757d;
}

/* Responsive utilities */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem;
    }

    h4 {
        font-size: 1.25rem;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
