:root {
    --primary: #6F309F;
    --primary-dark: #4c1d95;
    --primary-soft: #f5f0ff;
    --elastic-soft: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #fcfaff;
    overflow-x: hidden;
}

/* Enhanced Card Design */
.premium-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(111, 48, 159, 0.08);
    position: relative;
    z-index: 1;
    animation: slideUp 1s var(--elastic-soft);
}

.premium-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #6F309F15, transparent, #6F309F15);
    z-index: -1;
    border-radius: 42px;
}

@keyframes slideUp {
    from {
        transform: translateY(60px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Improved Rubber Band Effect */
@keyframes softRubber {
    0% {
        transform: scale3d(1, 1, 1);
    }

    30% {
        transform: scale3d(1.08, 0.92, 1);
    }

    40% {
        transform: scale3d(0.92, 1.08, 1);
    }

    50% {
        transform: scale3d(1.05, 0.95, 1);
    }

    65% {
        transform: scale3d(0.98, 1.02, 1);
    }

    75% {
        transform: scale3d(1.02, 0.98, 1);
    }

    100% {
        transform: scale3d(1, 1, 1);
    }
}

.input-group {
    position: relative;
    transition: all 0.4s var(--elastic-soft);
}

.input-group:active {
    animation: softRubber 0.6s;
}

/* Fixed Icons Style */
.form-input {
    width: 100%;
    background: #fdfbff;
    border: 2px solid #f1f5f9;
    padding: 16px 50px 16px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    transition: all 0.4s var(--elastic-soft);
    color: #334155;
}

.form-input:focus {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 15px 35px -12px rgba(111, 48, 159, 0.2);
    transform: scale(1.03);
}

.floating-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: all 0.4s var(--elastic-soft);
    pointer-events: none;
    z-index: 10;
    /* Ensure icon is above text */
}

.input-group:focus-within .floating-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.2);
}

/* Button Enhancements */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 18px;
    border-radius: 20px;
    font-weight: 800;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s var(--elastic-soft);
    box-shadow: 0 8px 25px -8px rgba(111, 48, 159, 0.5);
}

.btn-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -10px rgba(111, 48, 159, 0.6);
}

.btn-premium:active {
    animation: softRubber 0.6s;
}

/* Autocomplete Suggestions */
.suggestions-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #f1f5f9;
    display: none;
    padding: 8px;
}

.suggestion-item {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-item:hover {
    background: var(--primary-soft);
    color: var(--primary);
    padding-right: 24px;
}

/* Panel Transition */
#register-panel {
    display: none;
    opacity: 0;
    transform: scale(0.95) translateY(30px);
    transition: all 0.6s var(--elastic-soft);
}

#register-panel.active {
    display: block;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.toggle-password {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #cbd5e1;
    transition: all 0.3s;
}

.toggle-password:hover {
    color: var(--primary);
}