Ohana Auth Modals

-
Enhanced with OTP

/* Modal Animations */
@keyframes ohanaModalSlide {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ohanaHeartPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px var(--snitch-cyan));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px var(--snitch-cyan));
    }
}

@keyframes ohanaFamilyPulse {
    0%,
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 15px var(--snitch-indigo));
    }
    50% {
        transform: scale(1.15);
        filter: drop-shadow(0 0 25px var(--snitch-indigo));
    }
}

@keyframes ohanaPhoneShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px) rotate(-5deg);
    }
    75% {
        transform: translateX(5px) rotate(5deg);
    }
}

@keyframes ohanaFloatingHearts {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5);
    }
}

@keyframes ohanaFloatingStars {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.3) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-15px) scale(1) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0.3) rotate(360deg);
    }
}

@keyframes ohanaGradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes ohanaOtpGlow {
    0%,
    100% {
        box-shadow: 0 0 5px var(--snitch-cyan);
        border-color: var(--snitch-cyan);
    }
    50% {
        box-shadow: 0 0 20px var(--snitch-cyan), 0 0 30px var(--snitch-cyan);
        border-color: var(--snitch-indigo);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Modal Structure */
.ohana-modal {
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(30, 58, 138, 0.3);
    animation: ohanaModalSlide 0.4s ease-out;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.ohana-modal .modal-header {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: none;
}

.ohana-close {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--snitch-silver);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.ohana-close:hover {
    background: var(--snitch-blue);
    border-color: var(--snitch-blue);
    transform: rotate(90deg) scale(1.1);
}

/* Illustration Sides */
.ohana-illustration-side {
    background: linear-gradient(135deg, var(--snitch-blue), var(--snitch-indigo), var(--snitch-cyan));
    background-size: 400% 400%;
    animation: ohanaGradientShift 8s ease infinite;
    position: relative;
    overflow: hidden;
}

.ohana-signup-side {
    background: linear-gradient(135deg, var(--snitch-indigo), var(--snitch-cyan), var(--snitch-blue-light));
    background-size: 400% 400%;
    animation: ohanaGradientShift 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.ohana-illustration-side::before,
.ohana-signup-side::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(6, 182, 212, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.ohana-welcome-animation {
    position: relative;
}

.ohana-heart-pulse {
    animation: ohanaHeartPulse 2s ease-in-out infinite;
    display: inline-block;
}

.ohana-family-pulse {
    animation: ohanaFamilyPulse 2.5s ease-in-out infinite;
    display: inline-block;
}

.ohana-phone-shake {
    animation: ohanaPhoneShake 2s ease-in-out infinite;
    color: var(--snitch-cyan);
}

/* Floating Elements */
.ohana-floating-hearts,
.ohana-floating-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.ohana-floating-heart {
    position: absolute;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    animation: ohanaFloatingHearts 3s ease-in-out infinite;
    animation-delay: var(--delay);
}

.ohana-floating-star {
    position: absolute;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    animation: ohanaFloatingStars 4s ease-in-out infinite;
    animation-delay: var(--delay);
}

.ohana-floating-heart:nth-child(1),
.ohana-floating-star:nth-child(1) {
    left: 20%;
    top: 20%;
}

.ohana-floating-heart:nth-child(2),
.ohana-floating-star:nth-child(2) {
    right: 20%;
    top: 40%;
}

.ohana-floating-heart:nth-child(3),
.ohana-floating-star:nth-child(3) {
    left: 50%;
    top: 60%;
}

/* Step Management */
.otp-step,
.signup-step {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.4s ease;
}

.otp-step.active,
.signup-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Form Styling */
.ohana-title {
    background: linear-gradient(135deg, var(--snitch-blue), var(--snitch-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    font-size: 1.8rem;
}

.ohana-label {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.ohana-label i {
    color: var(--snitch-cyan);
    font-size: 1rem;
}

.ohana-input {
    border: 2px solid var(--snitch-silver);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.ohana-input:focus {
    border-color: var(--snitch-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
}

.ohana-input:hover {
    border-color: var(--snitch-blue-light);
}

/* OTP Input Styling */
.otp-input-container {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.ohana-otp-input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 3px solid var(--snitch-silver);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: var(--snitch-blue);
}

.ohana-otp-input:focus {
    border-color: var(--snitch-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    outline: none;
    transform: scale(1.05);
    animation: ohanaOtpGlow 2s ease-in-out infinite;
    background: rgba(255, 255, 255, 1);
}

.ohana-otp-input.filled {
    border-color: var(--snitch-indigo);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(6, 182, 212, 0.1));
    transform: scale(1.02);
}

.ohana-otp-input.error {
    border-color: #dc3545;
    animation: ohanaPhoneShake 0.5s ease-in-out;
}

/* Timer Styling */
.ohana-timer {
    color: var(--snitch-blue);
    font-weight: 600;
    font-size: 1.1rem;
}

.ohana-timer i {
    color: var(--snitch-cyan);
    animation: spin 2s linear infinite;
}

/* Phone Display */
.ohana-phone-display {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(6, 182, 212, 0.1));
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid var(--snitch-silver);
}

/* Links */
.ohana-link {
    color: var(--snitch-blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.ohana-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--snitch-cyan), var(--snitch-indigo));
    transition: width 0.3s ease;
}

.ohana-link:hover::after {
    width: 100%;
}

.ohana-link:hover {
    color: var(--snitch-cyan);
    text-decoration: none;
}

.ohana-link:disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* Submit Button */
.ohana-btn {
    background: linear-gradient(135deg, var(--snitch-blue), var(--snitch-indigo));
    border: none;
    border-radius: 0.75rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.ohana-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ohana-btn:hover::before {
    left: 100%;
}

.ohana-btn:hover {
    background: linear-gradient(135deg, var(--snitch-blue-light), var(--snitch-cyan));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

.ohana-btn:active {
    transform: translateY(-1px);
}

.ohana-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spin {
    animation: spin 1s linear infinite;
}

/* Error Styling */
.invalid-feedback {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.ohana-input.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Alert Styling */
.alert {
    border-radius: 0.75rem;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1), rgba(220, 53, 69, 0.05));
    color: #dc3545;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    color: #10b981;
    border-left: 4px solid #10b981;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ohana-modal .modal-dialog {
        margin: 1rem;
        max-width: none;
    }

    .ohana-modal {
        border-radius: 1rem;
    }

    .ohana-title {
        font-size: 1.5rem;
    }

    .ohana-illustration-side,
    .ohana-signup-side {
        display: none !important;
    }

    .otp-input-container {
        gap: 0.5rem;
    }

    .ohana-otp-input {
        width: 45px;
        height: 55px;
        font-size: 1.3rem;
    }
}

/* Modal Backdrop */
.modal-backdrop {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8), rgba(79, 70, 229, 0.6));
    backdrop-filter: blur(5px);
}

/* Loading State */
.ohana-btn .btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Success Animation */
@keyframes ohanaSuccess {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.ohana-success {
    animation: ohanaSuccess 0.6s ease-in-out;
}

/* Enhanced Modal Transitions */
.modal.fade .modal-dialog {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal.show .modal-dialog {
    transform: none;
}

.modal-backdrop.show {
    opacity: 0.8;
}

/* Step Transition Effects */
.step-slide-out {
    animation: slideOut 0.3s ease-in-out forwards;
}

.step-slide-in {
    animation: slideIn 0.3s ease-in-out forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-30px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Alert Animations */
.ohana-alert {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
    border: none;
    font-weight: 500;
}

.ohana-alert.alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(5, 150, 105, 0.95));
    color: white;
    border-left: 4px solid #059669;
}

.ohana-alert.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.95), rgba(185, 28, 28, 0.95));
    color: white;
    border-left: 4px solid #b91c1c;
}

.ohana-alert i {
    font-size: 1.1rem;
}

/* Enhanced phone shake animation */
@keyframes ohanaPhoneShake {
    0%,
    100% {
        transform: translateX(0);
    }
    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-5px);
    }
    20%,
    40%,
    60%,
    80% {
        transform: translateX(5px);
    }
}

/* Loading state enhancements */
.ohana-btn:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none !important;
}

.ohana-btn:disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3) !important;
}

/* Enhanced OTP input focus states */
.ohana-otp-input:focus {
    border-color: var(--snitch-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
    outline: none;
    transform: scale(1.05);
    animation: ohanaOtpGlow 2s ease-in-out infinite;
    background: rgba(255, 255, 255, 1);
}

/* Success celebration enhancements */
.ohana-success .ohana-floating-heart,
.ohana-success .ohana-floating-star {
    animation-duration: 1s !important;
    color: #10b981 !important;
}

.ohana-success .ohana-heart-pulse,
.ohana-success .ohana-family-pulse {
    color: #10b981 !important;
    filter: drop-shadow(0 0 20px #10b981) !important;
}


.otp-input {
    width: 48px;
    height: 48px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px;
}

.otp-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
    outline: none;
}

@media (max-width: 420px) {
    .otp-input {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

#otp_phone_number {
    font-size: 17px;
    letter-spacing: 1px;
}

#sendOtpBtn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}