/* 
 * OTP Authentication Styles
 * Uses Material Design Bootstrap (MDB) classes
 * No inline CSS - all styles defined here
 */

/* Wrapper and Container Styles */
.otp-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #fff5e6 0%, #ffffff 50%, #ffebee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.otp-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(248, 155, 32, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.otp-wrapper::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(181, 0, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Container Styles */
.otp-container {
    max-width: 1100px;
    width: 100%;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.otp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

/* Branding Section */
.otp-branding {
    background: linear-gradient(135deg, #f89b20 0%, #b50000 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.otp-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.otp-branding::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.branding-content {
    position: relative;
    z-index: 2;
}

.brand-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.brand-icon i {
    font-size: 2.5rem;
    color: white;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.3;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.brand-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 32px;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-item i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Form Wrapper */
.otp-form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    overflow-y: auto;
}

.otp-form-inner {
    width: 100%;
}

.otp-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.otp-subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Form Elements */
.otp-form {
    width: 100%;
}

.otp-input {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.otp-input:focus {
    border-color: #f89b20;
    box-shadow: 0 0 0 0.2rem rgba(248, 155, 32, 0.15);
    outline: none;
}

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

.form-label {
    color: #666;
    font-weight: 500;
    font-size: 0.9rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* OTP Digit Input */
.otp-digit-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
}

.otp-digit-input:focus {
    border-color: #f89b20;
    box-shadow: 0 0 0 0.2rem rgba(248, 155, 32, 0.15);
    outline: none;
}

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

.otp-input-container {
    text-align: center;
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* OTP Button */
.otp-btn {
    background: linear-gradient(135deg, #f89b20 0%, #b50000 100%);
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    font-weight: 600;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto', 'Segoe UI', sans-serif;
}

.otp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(248, 155, 32, 0.3);
    color: white;
}

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

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

/* Divider */
.otp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
    font-weight: 500;
}

.otp-divider::before,
.otp-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Form Controls */
.form-control.otp-input {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 15px;
}

.form-select.otp-input {
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    padding: 15px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: #f89b20;
    border-color: #f89b20;
}

.form-check-input:focus {
    border-color: #f89b20;
    box-shadow: 0 0 0 0.2rem rgba(248, 155, 32, 0.15);
}

.form-check-label {
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin-left: 8px;
}

/* Alert Styles */
.alert {
    border-radius: 12px;
    border: none;
    padding: 15px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.alert-danger {
    background-color: #fff5f5;
    color: #c02e2e;
}

.alert-success {
    background-color: #f1fdf4;
    color: #22863a;
}

.alert-info {
    background-color: #f1f8ff;
    color: #003cc3;
}

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

/* Spinner */
.spinner-border-sm {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Links */
a.text-decoration-none {
    text-decoration: none !important;
}

a.text-primary {
    color: #f89b20 !important;
    transition: color 0.3s ease;
}

a.text-primary:hover {
    color: #b50000 !important;
}

.btn-link {
    color: #f89b20;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #b50000;
    text-decoration: underline;
}

.btn-outline-secondary {
    border: 2px solid #e0e0e0;
    color: #666;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    border-color: #f89b20;
    background-color: #fff9f5;
    color: #f89b20;
}

/* Responsive Design */
@media (max-width: 992px) {
    .otp-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .otp-branding {
        padding: 40px 30px;
        min-height: 300px;
    }

    .otp-form-wrapper {
        padding: 40px 30px;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .otp-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .otp-wrapper {
        padding: 20px 15px;
    }

    .otp-container {
        border-radius: 16px;
    }

    .otp-branding {
        padding: 30px 20px;
    }

    .otp-form-wrapper {
        padding: 30px 20px;
    }

    .otp-grid {
        min-height: auto;
    }

    .brand-icon {
        width: 60px;
        height: 60px;
    }

    .brand-icon i {
        font-size: 2rem;
    }

    .brand-title {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }

    .brand-subtitle {
        font-size: 0.95rem;
    }

    .brand-features {
        gap: 10px;
        margin-bottom: 20px;
    }

    .feature-item {
        font-size: 0.85rem;
    }

    .otp-title {
        font-size: 1.25rem;
    }

    .otp-subtitle {
        font-size: 0.85rem;
    }

    .otp-input {
        padding: 12px;
        font-size: 0.95rem;
    }

    .otp-digit-input {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .otp-inputs {
        gap: 8px;
    }

    .otp-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .btn-outline-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .alert {
        padding: 12px 15px;
        font-size: 0.85rem;
    }

    .form-label {
        font-size: 0.85rem;
    }

    .form-text {
        font-size: 0.75rem;
    }
}

/* Dark Mode Support (if needed) */
@media (prefers-color-scheme: dark) {
    .otp-wrapper {
        background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #3a1a1a 100%);
    }

    .otp-container {
        background: #2a2a2a;
    }

    .otp-title {
        color: #fff;
    }

    .otp-subtitle {
        color: #ccc;
    }

    .otp-input {
        background: #3a3a3a;
        color: #fff;
        border-color: #555;
    }

    .otp-input:focus {
        border-color: #f89b20;
    }

    .otp-digit-input {
        background: #3a3a3a;
        color: #fff;
        border-color: #555;
    }

    .form-label {
        color: #ccc;
    }

    .form-check-label {
        color: #fff;
    }

    .alert-danger {
        background-color: #3a1a1a;
        color: #ff6b6b;
    }

    .alert-success {
        background-color: #1a3a2a;
        color: #51cf66;
    }
}

/* Utility Classes */
.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

.gap-2 {
    gap: 0.5rem;
}

.justify-content-center {
    justify-content: center;
}

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

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

.text-muted {
    color: #999;
}

.text-dark {
    color: #333;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.ms-2 {
    margin-left: 0.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.my-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.w-100 {
    width: 100%;
}

.fw-bold {
    font-weight: 600;
}

.text-decoration-none {
    text-decoration: none;
}

.bg-light {
    background-color: #f8f9fa;
}
