* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.particle-icon {
    position: absolute;
    color: rgba(59, 130, 246, 0.15);
    text-shadow:
        0 0 10px rgba(59, 130, 246, 0.4),
        0 0 20px rgba(59, 130, 246, 0.2);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    /* box-shadow:
        0 0 8px rgba(59, 130, 246, 0.6),
        0 0 16px rgba(59, 130, 246, 0.3); */
    animation: floatIcon 20s linear infinite;
}

@keyframes floatIcon {
    0% {
        transform:
            translateY(100vh) rotate(0deg) scale(0.8);

        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        transform:
            translateY(50vh) translateX(30px) rotate(180deg) scale(1);
    }

    90% {
        opacity: 1;
    }

    100% {
        transform:
            translateY(-150px) translateX(-30px) rotate(360deg) scale(1.2);
        opacity: 0;
    }
}

.auth-container {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-icon {
    width: 90px;
    height: 90px;
    /* background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%); */
    background: linear-gradient(135deg, #0f3460 0%, #3742fa 100%);

    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 15px 35px rgba(69, 88, 233, 0.4);
    /* rgba(233, 69, 96, 0.4); */
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 15px 35px rgba(69, 88, 233, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 20px 40px rgba(69, 88, 233, 0.6);
    }
}

.voice-waves {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 35px;
}

.voice-wave {
    width: 5px;
    background: white;
    border-radius: 3px;
    animation: wave 1.2s ease-in-out infinite;
}

.voice-wave:nth-child(1) {
    height: 30%;
    animation-delay: 0s;
}

.voice-wave:nth-child(2) {
    height: 60%;
    animation-delay: 0.15s;
}

.voice-wave:nth-child(3) {
    height: 100%;
    animation-delay: 0.3s;
}

.voice-wave:nth-child(4) {
    height: 60%;
    animation-delay: 0.45s;
}

.voice-wave:nth-child(5) {
    height: 30%;
    animation-delay: 0.6s;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

.logo-section h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.logo-section p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    font-weight: 400;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    padding: 15px 50px 15px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-size: 15px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.input-wrapper input:focus {
    outline: none;
    border-color: #3742fa;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(69, 96, 233, 0.15);
}

.input-wrapper input.error {
    border-color: #ff4757;
    background: rgba(255, 71, 87, 0.05);
}

.input-wrapper input.success {
    border-color: #2ed573;
    background: rgba(46, 213, 115, 0.05);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
}

.input-wrapper input:focus~.input-icon{
    color: #3742fa;
}

.input-wrapper input:focus~.toggle-password {
    color: #3742fa;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password:hover {
    color: #3742fa;
}

.error-message {
    color: #ff6b81;
    font-size: 12px;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 6px;
}

.error-message.show {
    display: flex;
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    /* accent-color: #e94560; */
    accent-color: #3377c8;
    cursor: pointer;
}

.forgot-password {
    /* color: #e94560; */
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 13px;
    font-family: inherit;
}

.forgot-password:hover {
    /* color: #ff6b6b; */
    color: #3377c8;
    text-decoration: underline;
}

.auth-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(233, 69, 96, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.auth-btn .spinner {
    display: none;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

.auth-btn.loading .btn-text {
    display: none;
}

.auth-btn.loading .spinner {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.backToHome{
    margin-top: 15px;
    background: linear-gradient(135deg, #c1a2a7 0%, #fdaaaa2e 100%);
}

.back-link {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.back-link button {
    color: #e94560;
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link button:hover {
    color: #ff6b6b;
    text-decoration: underline;
}

.hidden {
    display: none !important;
}

.step-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.step-dot.active {
    background: #e94560;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.step-dot.completed {
    background: #2ed573;
}

.code-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 25px;
}

.code-input {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s;
}

.code-input:focus {
    outline: none;
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.15);
    transform: scale(1.05);
}

.timer-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    margin-bottom: 20px;
}

.timer-text button {
    color: #e94560;
    background: none;
    border: none;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.timer-text button:disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.strength-meter {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
    display: none;
}

.strength-meter.show {
    display: block;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: all 0.3s;
    border-radius: 2px;
}

.strength-text {
    font-size: 12px;
    margin-top: 6px;
    display: none;
}

.strength-text.show {
    display: block;
}

/* Toast notification */
.toast {
    position: fixed;
    top: 25px;
    right: 25px;
    padding: 18px 25px;
    background: rgba(30, 30, 50, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(450px);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
    border-left: 4px solid;
    min-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left-color: #2ed573;
}

.toast.error {
    border-left-color: #ff4757;
}

.toast.warning {
    border-left-color: #ffa502;
}

.toast-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    flex-shrink: 0;
    font-size: 14px;
}

.toast.success .toast-icon {
    background: #2ed573;
}

.toast.error .toast-icon {
    background: #ff4757;
}

.toast.warning .toast-icon {
    background: #ffa502;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-size: 15px;
}

.toast-message {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.company-footer {
    margin-top: 24px;
    text-align: center;
}

.company-footer p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.company-footer span {
    color: #F59E0B;
    font-weight: 600;
}

@media (max-width: 480px) {
    .auth-container {
        margin: 20px;
        padding: 30px 20px;
    }

    .code-input {
        width: 45px;
        height: 55px;
        font-size: 20px;
    }
}