/* Registration Page Styles
 * Extracted from register.php
 * Contains: registration card, multi-step form, progress bar, OTP inputs
 * Uses variables from layout.css (:root defined there)
 * Local overrides for standalone page rendering
 */

:root {
    /* Primary Theme Colors */
    --primary-color: #008190;
    --primary-dark: #006570;
    --primary-light: #e6f2f4;
    --primary-gradient: linear-gradient(135deg, #008190 0%, #00a0b0 100%);

    /* Secondary/Accent Colors */
    --secondary-color: #F38E3E;
    --accent-color: #F38E3E;
    --accent-dark: #e67e2e;

    /* Text Colors */
    --text-color: #333;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-muted: #6c757d;

    /* Background & Border */
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Status Colors */
    --success-color: #28a745;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #e6f2f4;
    /* Solid light color */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', 'Poppins', sans-serif;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Removed animation */

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-30px, 30px) rotate(180deg);
    }
}

.register-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 650px;
    padding: 48px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-icon {
    background: var(--primary-color);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    /* animation: pulse 2s ease-in-out infinite; */
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.header-icon i {
    color: white;
    font-size: 2.5rem;
}

h4 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 1.75rem;
}

.text-muted {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background: var(--bg-light);
    border-radius: 10px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 129, 144, 0.5);
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.step.active .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0, 129, 144, 0.2);
}

.step.completed .step-circle {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: var(--primary-color);
}

.step.completed .step-label {
    color: var(--success-color);
}

/* Form Elements */
h5 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 24px;
    font-size: 1.35rem;
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    padding: 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    background: white;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 129, 144, 0.1);
    outline: none;
    background: white;
}

.form-control:hover,
.form-select:hover {
    border-color: var(--primary-light);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-secondary {
    background: white;
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline-secondary:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
    color: var(--text-dark);
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* OTP Input */
.otp-input {
    width: 55px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    background: white;
}

.otp-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 129, 144, 0.15);
    outline: none;
    transform: scale(1.05);
}

/* Step Transitions */
.registration-step {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Message Styling */
#message {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

/* Divider */
hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 24px 0;
    opacity: 0.5;
}

h6 {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        padding: 0;
        align-items: flex-start;
        background: white;
    }

    body::before {
        display: none;
    }

    .register-card {
        border-radius: 0;
        box-shadow: none;
        padding: 24px 20px 60px 20px;
        width: 100%;
        max-width: 100%;
        min-height: 100vh;
        border: none;
        background: white;
    }

    .header-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 16px;
    }

    .header-icon i {
        font-size: 2rem;
    }

    h4 {
        font-size: 1.5rem;
    }

    .step-indicator {
        margin-bottom: 30px;
    }

    .step-circle {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .otp-input {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    h5 {
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    right: 20px;
    margin-top: -8px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}