@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --secondary-dark: #6008a0;
    --admin-orange: #ff6b35;
    --admin-orange-dark: #e55a2b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --transition: all 0.3s ease;
    --logo-color: #1e478d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* Admin Badge - Top Right */
.admin-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-dark));
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    z-index: 1000;
    animation: pulse-badge 2s ease-in-out infinite;
}

    .admin-badge i {
        font-size: 1.1rem;
    }

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 53, 0.6);
    }
}

/* Particles background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

/* Main container styles */
.auth-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    z-index: 1;
}

.auth-card {
    display: flex;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-height: 600px;
    /*border: 2px solid var(--logo-color);*/
}

/* Left side styles */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(114, 9, 183, 0.05));
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Admin pattern background */
.admin-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    /*background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, var(--admin-orange) 10px, var(--admin-orange) 11px), repeating-linear-gradient(-45deg, transparent, transparent 10px, var(--admin-orange) 10px, var(--admin-orange) 11px);*/
}

.auth-left-content {
    text-align: center;
    z-index: 2;
}

/* Admin header badge */
/*.admin-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--admin-orange);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--admin-orange);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}*/
.admin-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--logo-color);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--logo-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.auth-logo {
    margin-bottom: 20px;
}

    .auth-logo img {
        height: 50px;
        /*filter: drop-shadow(0 0 10px rgba(255, 107, 53, 0.3));*/
    }

.auth-left h2 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-left p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 30px;
}

.auth-illustration {
    max-width: 300px;
    margin: 0 auto;
}

    .auth-illustration img {
        width: 100%;
        height: auto;
        animation: float 6s ease-in-out infinite;
    }

/* Admin icon grid */
.admin-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 250px;
    margin: 30px auto 0;
}

.admin-icon {
    width: 80px;
    height: 80px;
    /* background: rgba(255, 107, 53, 0.1); */
    border: 2px solid var(--logo-color);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--logo-color);
    font-size: 1.8rem;
    transition: var(--transition);
    animation: float-icon 3s ease-in-out infinite;
}

    .admin-icon:nth-child(1) {
        animation-delay: 0s;
    }

    .admin-icon:nth-child(2) {
        animation-delay: 0.5s;
    }

    .admin-icon:nth-child(3) {
        animation-delay: 1s;
    }

    .admin-icon:nth-child(4) {
        animation-delay: 1.5s;
    }

    /*.admin-icon:hover {
        background: rgba(255, 107, 53, 0.2);
        border-color: var(--admin-orange);
        transform: scale(1.1);
    }*/

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Right side styles */
.auth-right {
    width: 450px;
    padding: 40px;
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

    /* Add corner accent */
    .auth-right::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 100px;
        height: 100px;
        background: linear-gradient(135deg, transparent 50%, rgb(53 78 255 / 6%) 50%);
    }

.auth-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.mobile-admin-badge {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--logo-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 15px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.mobile-logo {
    display: none;
    height: 40px;
    margin-bottom: 20px;
}

.auth-form-header h1 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        color: var(--text-primary);
        font-weight: 500;
        font-size: 0.9rem;
    }

        .form-group label i {
            color: var(--admin-orange);
        }

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--logo-color);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 12px 15px 12px 40px;
    font-size: 0.95rem;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

    .input-wrapper input:focus,
    .input-wrapper select:focus {
        outline: none;
        border-color: var(--logo-color);
        /*box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);*/
    }

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

    .toggle-password:hover {
        color: var(--logo-color);
    }

/* Security notice */
.security-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-sm);
    color: #16a34a;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

    .security-notice i {
        font-size: 1rem;
    }

.forgot-password {
    text-align: right;
    margin-bottom: 25px;
}

    .forgot-password a {
        color: var(--logo-color);
        text-decoration: none;
        font-size: 0.85rem;
        transition: var(--transition);
    }

        .forgot-password a:hover {
            color: var(--logo-color);
            text-decoration: underline;
        }

.back-to-login {
    text-align: right;
    margin-bottom: 25px;
}

    .back-to-login a {
        color: var(--logo-color);
        text-decoration: none;
        font-size: 0.85rem;
        transition: var(--transition);
    }

        .back-to-login a:hover {
            color: var(--logo-color);
            text-decoration: underline;
        }

.auth-button {
    width: 100%;
    padding: 12px 15px;
    background: #4361ee;
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

    .auth-button:hover {
        background: #4361ee;
        box-shadow: var(--shadow-md);
        transform: translateY(-1px);
    }

    .auth-button:disabled {
        background: #cbd5e1;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Admin button styling */
.admin-button {
    background: var(--logo-color);
    /*background: linear-gradient(135deg, var(--admin-orange), var(--admin-orange-dark));*/
    /*box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);*/
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

    .admin-button:hover {
        background: var(--logo-color);
        /*box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);*/
        transform: translateY(-2px);
    }

    .admin-button:disabled {
        background: #cbd5e1;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* OTP styles */
.notification-box {
    background-color: rgba(67, 97, 238, 0.05);
    border: 1px solid rgba(67, 97, 238, 0.1);
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 25px;
    text-align: center;
}

    .notification-box i {
        font-size: 24px;
        margin-bottom: 10px;
        color: var(--primary);
    }

    .notification-box p {
        margin: 5px 0;
        color: var(--text-secondary);
    }

.masked-info {
    font-weight: 600;
    color: var(--primary);
    font-size: 1rem;
}

.otp-input-group {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin: 15px 0;
}

.otp-part {
    width: 45px !important;
    height: 45px;
    font-size: 1.2rem;
    text-align: center;
    padding: 0 !important;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--bg-light);
}

.status-message {
    margin: 10px 0;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

    .status-message.error {
        background-color: #fee2e2;
        color: #dc2626;
        border: 1px solid #fecaca;
    }

    .status-message.success {
        background-color: #dcfce7;
        color: #16a34a;
        border: 1px solid #bbf7d0;
    }

.resend-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.resend-wrapper {
    display: flex;
    align-items: center;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

    .resend-btn:not(:disabled):hover {
        background: rgba(67, 97, 238, 0.1);
    }

    .resend-btn:disabled {
        color: #94a3b8;
        cursor: not-allowed;
    }

.timer {
    min-width: 30px;
    color: var(--text-secondary);
    font-weight: 500;
    text-align: center;
}

/* Password change styles */
.password-requirements {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

    .password-requirements p {
        margin-bottom: 5px;
        font-weight: 500;
    }

    .password-requirements ul {
        list-style: none;
        padding-left: 5px;
    }

    .password-requirements li {
        margin-bottom: 3px;
        display: flex;
        align-items: center;
    }

        .password-requirements li i {
            font-size: 0.6rem;
            margin-right: 8px;
            color: #94a3b8;
        }

        .password-requirements li.valid i {
            color: #16a34a;
        }

.password-match {
    margin-top: 5px;
    font-size: 0.85rem;
    height: 20px;
}

    .password-match.match {
        color: #16a34a;
    }

    .password-match.mismatch {
        color: #dc2626;
    }

/* Profile creation styles */
.profile-picture-upload {
    margin-bottom: 25px;
}

.profile-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.profile-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

    .profile-preview i {
        font-size: 2rem;
        color: var(--text-secondary);
    }

    .profile-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.upload-button-wrapper {
    position: relative;
}

.upload-button {
    padding: 8px 15px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

    .upload-button:hover {
        background: var(--primary);
        color: white;
        border-color: var(--primary);
    }

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.select-wrapper::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Responsive styles */
@media (max-width: 992px) {
    .auth-card {
        flex-direction: column;
        max-width: 500px;
        margin: 0 auto;
    }

    .auth-left {
        padding: 30px;
    }

    .auth-right {
        width: 100%;
        padding: 30px;
    }

    .auth-illustration {
        max-width: 200px;
    }

    .admin-icon-grid {
        max-width: 200px;
        gap: 15px;
    }

    .admin-icon {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .auth-left {
        display: none;
    }

    .mobile-logo {
        display: block;
        margin: 0 auto 15px auto;
    }

    .mobile-admin-badge {
        display: flex;
    }

    .auth-card {
        min-height: auto;
    }

    .auth-logo {
        display: none;
    }

    .admin-badge {
        top: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .auth-right {
        padding: 20px;
    }

    .auth-form-header h1 {
        font-size: 1.5rem;
    }

    .otp-input-group {
        gap: 5px;
    }

    .otp-part {
        width: 40px !important;
        height: 40px;
    }

    .admin-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

.preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    /*background: linear-gradient(135deg, #1e1e2e 0%, #2d2d44 100%);*/
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-card {
    width: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.logo-animation {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

/* Admin glow effect */
.admin-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    /*background: radial-gradient(circle, rgba(255, 107, 53, 0.3) 0%, transparent 70%);*/
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.logo {
    width: 70px;
    height: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.5));
}

/* Particle orbit animation */
.orbit-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid var(--logo-color);
    animation: rotate 10s linear infinite;
}

.orbit-1 {
    width: 100%;
    height: 100%;
    animation-duration: 10s;
    opacity: 0.6;
}

.orbit-2 {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    animation-duration: 8s;
    animation-direction: reverse;
    opacity: 0.4;
}

.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: var(--logo-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.8);
}

.particle-1 {
    animation: pulse 2s ease-in-out infinite;
}

.particle-2 {
    animation: pulse 2s ease-in-out infinite 0.5s;
}

.particle-3 {
    animation: pulse 2s ease-in-out infinite 1s;
}

.particle-4 {
    animation: pulse 2s ease-in-out infinite 1.5s;
}

/* Leaf-like particles that occasionally float up */
.leaf-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.leaf {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--logo-color);
    border-radius: 50%;
    bottom: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, 0) scale(0);
    animation: floatLeaf 3s ease-out infinite;
}

.leaf-1 {
    animation-delay: 0s;
}

.leaf-2 {
    animation-delay: 1s;
}

.leaf-3 {
    animation-delay: 2s;
}

/* Progress bar */
.progress-container {
    width: 100%;
    height: 3px;
    background-color: rgba(255, 107, 53, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background-color: var(--admin-orange);
    animation: progress 2.5s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: translateX(-50%) scale(0.8);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

@keyframes floatLeaf {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0) rotate(0deg);
    }

    20% {
        opacity: 0.8;
        transform: translate(-50%, -10px) scale(1) rotate(45deg);
    }

    80% {
        opacity: 0.8;
        transform: translate(-50%, -40px) scale(0.8) rotate(90deg);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50px) scale(0) rotate(135deg);
    }
}

@keyframes progress {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

@media (max-width: 768px) {
    .loader-card {
        width: 180px;
        padding: 30px;
    }

    .logo {
        width: 60px;
    }
}
