/* 
 * NexusRH Login - Premium Animated Design
 * With floating shapes, modern animations, and dynamic effects
 */

/* ========================================
   VARIABLES
   ======================================== */
:root {
    --primary: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    --secondary: #d946ef;
    --accent: #06b6d4;

    --bg-main: #f5f3ff;
    --bg-gradient-1: #ede9fe;
    --bg-gradient-2: #fdf4ff;
    --bg-white: #ffffff;

    --text-dark: #1e1b4b;
    --text-medium: #4c1d95;
    --text-light: #6b7280;
    --text-muted: #9ca3af;

    --input-bg: #ffffff;
    --input-border: #e5e7eb;

    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(139, 92, 246, 0.2);

    --success: #22c55e;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-main) 50%, var(--bg-gradient-2) 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */
.aurora-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-main) 50%, var(--bg-gradient-2) 100%);
}

/* Aurora Waves */
.aurora-wave {
    position: absolute;
    width: 200%;
    height: 100%;
    left: -50%;
    filter: blur(80px);
    opacity: 0.4;
}

.aurora-wave-1 {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 92, 246, 0.3) 40%, rgba(168, 85, 247, 0.15) 60%, transparent 80%);
    animation: wave-flow 12s ease-in-out infinite;
    top: -30%;
}

.aurora-wave-2 {
    background: linear-gradient(180deg, transparent 10%, rgba(217, 70, 239, 0.25) 45%, rgba(139, 92, 246, 0.1) 65%, transparent 85%);
    animation: wave-flow 18s ease-in-out infinite reverse;
    top: 0%;
}

.aurora-wave-3 {
    background: linear-gradient(180deg, transparent 20%, rgba(6, 182, 212, 0.2) 50%, rgba(139, 92, 246, 0.08) 70%, transparent 90%);
    animation: wave-flow 22s ease-in-out infinite;
    top: 10%;
}

@keyframes wave-flow {

    0%,
    100% {
        transform: translateX(-8%) rotate(-2deg) scale(1);
    }

    50% {
        transform: translateX(8%) rotate(2deg) scale(1.05);
    }
}

/* ========================================
   FLOATING GEOMETRIC SHAPES
   ======================================== */
.floating-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.6;
    animation: float-shape 20s ease-in-out infinite;
}

/* Circle */
.shape-circle {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    top: 10%;
    right: 5%;
    animation: float-rotate 25s linear infinite;
}

.shape-circle::before {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 50%;
}

/* Triangle */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(217, 70, 239, 0.1);
    top: 60%;
    left: 5%;
    animation: float-shape 18s ease-in-out infinite;
    animation-delay: -5s;
}

/* Square */
.shape-square {
    width: 120px;
    height: 120px;
    border: 2px solid rgba(6, 182, 212, 0.2);
    top: 70%;
    right: 15%;
    animation: float-rotate-reverse 30s linear infinite;
}

/* Dots */
.shape-dots {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation: float-shape 15s ease-in-out infinite;
    animation-delay: -8s;
}

.shape-dots::before,
.shape-dots::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.4;
}

.shape-dots::before {
    top: 0;
    left: 50%;
}

.shape-dots::after {
    bottom: 0;
    right: 0;
}

/* Hexagon */
.shape-hexagon {
    width: 100px;
    height: 57px;
    background: rgba(139, 92, 246, 0.08);
    top: 40%;
    right: 25%;
    animation: float-shape 22s ease-in-out infinite;
    animation-delay: -12s;
}

.shape-hexagon::before,
.shape-hexagon::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
}

.shape-hexagon::before {
    top: -28px;
    border-bottom: 28px solid rgba(139, 92, 246, 0.08);
}

.shape-hexagon::after {
    bottom: -28px;
    border-top: 28px solid rgba(139, 92, 246, 0.08);
}

/* Plus sign */
.shape-plus {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 30%;
    animation: float-rotate 20s linear infinite;
}

.shape-plus::before,
.shape-plus::after {
    content: '';
    position: absolute;
    background: rgba(217, 70, 239, 0.2);
    border-radius: 4px;
}

.shape-plus::before {
    width: 100%;
    height: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.shape-plus::after {
    width: 12px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

/* Ring */
.shape-ring {
    width: 180px;
    height: 180px;
    border: 3px solid rgba(139, 92, 246, 0.15);
    border-radius: 50%;
    bottom: 15%;
    left: 20%;
    animation: pulse-ring 4s ease-in-out infinite;
}

@keyframes float-shape {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    25% {
        transform: translateY(-20px) translateX(10px);
    }

    50% {
        transform: translateY(-10px) translateX(-15px);
    }

    75% {
        transform: translateY(-25px) translateX(5px);
    }
}

@keyframes float-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float-rotate-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

/* Animated particles */
.particles {
    position: absolute;
    inset: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 15s ease-in-out infinite;
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    left: 25%;
    animation-delay: -3s;
}

.particle:nth-child(3) {
    left: 40%;
    animation-delay: -6s;
}

.particle:nth-child(4) {
    left: 55%;
    animation-delay: -9s;
}

.particle:nth-child(5) {
    left: 70%;
    animation-delay: -12s;
}

.particle:nth-child(6) {
    left: 85%;
    animation-delay: -2s;
}

.particle:nth-child(7) {
    left: 15%;
    animation-delay: -5s;
}

.particle:nth-child(8) {
    left: 60%;
    animation-delay: -8s;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.7;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* ========================================
   MAIN LAYOUT
   ======================================== */
.login-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 2rem;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ========================================
   BRANDING SECTION
   ======================================== */
.brand-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    animation: slide-in-left 0.8s ease-out;
}

@keyframes slide-in-left {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.brand-logo img {
    height: 55px;
    filter: drop-shadow(0 4px 15px rgba(139, 92, 246, 0.3));
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.brand-logo h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: text-shimmer 3s ease-in-out infinite;
}

@keyframes text-shimmer {

    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.2);
    }
}

.brand-tagline {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
}

.brand-tagline span {
    display: block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-description {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 420px;
    margin-bottom: 2.5rem;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.08);
    transition: all 0.3s ease;
    animation: pill-appear 0.6s ease-out backwards;
}

.feature-pill:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-pill:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-pill:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-pill:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes pill-appear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-pill:hover {
    border-color: var(--primary);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.feature-pill i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* ========================================
   FORM CARD
   ======================================== */
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.form-card {
    width: 100%;
    max-width: 420px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(139, 92, 246, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: card-appear 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.18), 0 0 0 1px rgba(255, 255, 255, 0.6);
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-logo {
    display: none;
    text-align: center;
    margin-bottom: 1.5rem;
}

.mobile-logo img {
    height: 50px;
    animation: logo-pulse 3s ease-in-out infinite;
}

.form-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.35rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 0.4rem;
}

.input-wrapper {
    position: relative;
}

.aceternity-input,
.aceternity-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.aceternity-input::placeholder {
    color: var(--text-muted);
}

.aceternity-input:focus,
.aceternity-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.aceternity-input.pr-10 {
    padding-right: 2.75rem;
}

.aceternity-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%238b5cf6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em;
    padding-right: 2.5rem;
    cursor: pointer;
}

.aceternity-select:disabled {
    background-color: #f3f4f6;
    opacity: 0.6;
    cursor: not-allowed;
}

.password-toggle-icon {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.password-toggle-icon:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* ========================================
   BUTTONS
   ======================================== */
.shimmer-button {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 25px -8px rgba(139, 92, 246, 0.5);
}

.shimmer-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.shimmer-button:not(.loading):not(.success):hover::before {
    left: 100%;
}

.shimmer-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px -8px rgba(139, 92, 246, 0.5);
}

.shimmer-button:active {
    transform: translateY(-1px) scale(0.99);
}

.shimmer-button .button-text,
.shimmer-button .button-loader,
.shimmer-button .button-success-state {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.shimmer-button .button-loader,
.shimmer-button .button-success-state {
    position: absolute;
    opacity: 0;
    visibility: hidden;
}

.shimmer-button.loading .button-text {
    opacity: 0;
    visibility: hidden;
}

.shimmer-button.loading .button-loader {
    opacity: 1;
    visibility: visible;
}

.shimmer-button.success .button-text,
.shimmer-button.success .button-loader {
    opacity: 0;
    visibility: hidden;
}

.shimmer-button.success .button-success-state {
    opacity: 1;
    visibility: visible;
}

.shimmer-button.success {
    background: linear-gradient(135deg, var(--success), #16a34a);
}

.shimmer-button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.select-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--input-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    flex-shrink: 0;
}

/* ========================================
   LINKS & FOOTER
   ======================================== */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-footer a,
.form-link,
.forgot-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.form-footer a:hover,
.form-link:hover,
.forgot-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.forgot-link {
    display: block;
    text-align: right;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

/* Form toggle */
.form-content.hidden {
    display: none;
}

.form-content {
    animation: form-slide 0.5s ease-out;
}

@keyframes form-slide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-scroll-container {
    max-height: 280px;
    overflow-y: auto;
    margin: 0.5rem 0;
    padding-right: 0.5rem;
}

.form-scroll-container::-webkit-scrollbar {
    width: 5px;
}

.form-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.form-scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

/* ========================================
   MODALS
   ======================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.6);
    backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    width: 100%;
    max-width: 400px;
    background: var(--bg-white);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 60px rgba(139, 92, 246, 0.2);
    animation: modal-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-content h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
}

.modal-content>p {
    color: var(--text-light);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.modal-content .space-y-4>*+* {
    margin-top: 0.85rem;
}

.modal-content input[type="text"],
.modal-content input[type="password"],
.modal-content input[type="email"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    outline: none;
}

.modal-content input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

#email-verification-code,
#password-reset-verification-code {
    text-align: center;
    font-size: 1.75rem;
    letter-spacing: 0.75rem;
    font-weight: 600;
}

.tab-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: #f3f4f6;
    padding: 0.25rem;
    border-radius: 0.6rem;
}

.tab-button {
    flex: 1;
    padding: 0.65rem 1rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.phone-input-container {
    display: flex;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s;
}

.phone-input-container:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.phone-prefix {
    padding: 0.85rem 1rem;
    background: #f9fafb;
    color: var(--text-light);
    border-right: 1px solid var(--input-border);
    font-weight: 500;
}

#recovery-phone-modal {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* ========================================
   ANNOUNCEMENT MODAL
   ======================================== */
.announcement-modal {
    position: fixed;
    inset: 0;
    background: rgba(30, 27, 75, 0.85);
    backdrop-filter: blur(15px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.announcement-content {
    width: 100%;
    max-width: 480px;
    background: var(--bg-white);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 25px 80px rgba(139, 92, 246, 0.3);
    animation: announce-pop 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.announcement-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 60%);
    animation: announcement-glow 8s linear infinite;
}

@keyframes announcement-glow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes announce-pop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.announcement-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
    animation: icon-bounce 2s ease-in-out infinite;
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-8px) rotate(-5deg);
    }

    75% {
        transform: translateY(-4px) rotate(5deg);
    }
}

.announcement-title {
    position: relative;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.announcement-content>p {
    position: relative;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.announcement-features {
    position: relative;
    text-align: left;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem;
    margin-bottom: 0.6rem;
    background: #f9fafb;
    border: 1px solid #f3f4f6;
    border-radius: 0.85rem;
    transition: all 0.3s;
    animation: feature-slide 0.5s ease-out backwards;
}

.feature-item:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-item:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-item:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes feature-slide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item:hover {
    background: #f3f0ff;
    border-color: var(--glass-border);
    transform: translateX(5px);
}

.feature-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    animation: icon-float 3s ease-in-out infinite;
}

.feature-item:nth-child(2) .feature-icon {
    animation-delay: -1s;
}

.feature-item:nth-child(3) .feature-icon {
    animation-delay: -2s;
}

.feature-item:nth-child(4) .feature-icon {
    animation-delay: -0.5s;
}

@keyframes icon-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

.feature-text h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
}

.announcement-button {
    position: relative;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    overflow: hidden;
}

.announcement-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shimmer 2s infinite;
}

@keyframes btn-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.announcement-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
}

/* ========================================
   UTILITIES
   ======================================== */
.hidden {
    display: none !important;
}

.text-gray-900,
.text-gray-800 {
    color: var(--text-dark) !important;
}

.text-gray-600 {
    color: var(--text-light) !important;
}

.text-purple-600,
.text-purple-800 {
    color: var(--primary) !important;
}

/* SweetAlert */
.swal-contact-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.swal-contact-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
}

.swal-contact-button {
    width: 100%;
    margin-top: 0.4rem !important;
    justify-content: flex-start !important;
    background: #f9fafb !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
}

.swal-contact-button:hover {
    background: #f3f0ff !important;
    border-color: var(--primary) !important;
}

.swal-contact-button i {
    margin-right: 0.6rem;
    width: 18px;
}

.swal-contact-button .fa-whatsapp {
    color: #25D366;
}

.swal-contact-button .fa-envelope {
    color: var(--primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 0;
    }

    .brand-section {
        display: none;
    }

    .form-section {
        min-height: 100vh;
        padding: 0.5rem;
    }

    .mobile-logo {
        display: block;
    }

    .floating-shapes {
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .form-card {
        padding: 1.5rem 1.25rem;
        border-radius: 1.25rem;
    }

    .form-header h2 {
        font-size: 1.35rem;
    }

    .aceternity-input,
    .aceternity-select {
        padding: 0.75rem 0.9rem;
        font-size: 0.9rem;
    }

    .shimmer-button {
        padding: 0.8rem 1.25rem;
    }

    .form-scroll-container {
        max-height: 250px;
    }

    .announcement-content {
        padding: 2rem 1.5rem;
    }

    .announcement-title {
        font-size: 1.6rem;
    }

    .announcement-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
}
/* ========================================
   ANNOUNCEMENT BANNER (Login Header)
   ======================================== */
.announcement-banner {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(217, 70, 239, 0.08));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    animation: banner-slide-in 0.6s ease-out;
}

@keyframes banner-slide-in {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: banner-glow-rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes banner-glow-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.banner-content {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    z-index: 1;
}

.banner-icon-wrapper {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    animation: banner-icon-pulse 2.5s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

@keyframes banner-icon-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
    }
}

.banner-text {
    flex: 1;
    min-width: 0;
}

.banner-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    margin-bottom: 0.25rem;
    animation: badge-shine 3s ease-in-out infinite;
}

@keyframes badge-shine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.banner-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.banner-text p {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0.15rem 0 0;
    line-height: 1.3;
}

.banner-button {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.banner-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: btn-shimmer 2.5s infinite;
}

.banner-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 18px rgba(139, 92, 246, 0.45);
}

.banner-button:active {
    transform: translateY(0) scale(0.98);
}

.banner-button i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.banner-button:hover i {
    transform: translateX(3px);
}

/* ========================================
   BANNER & MODAL RESPONSIVE IMPROVEMENTS
   ======================================== */
@media (max-width: 480px) {
    .announcement-banner {
        padding: 0.75rem;
    }

    .banner-content {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .banner-icon-wrapper {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .banner-text {
        flex: 1 1 calc(100% - 100px);
    }

    .banner-text h4 {
        font-size: 0.8rem;
    }

    .banner-text p {
        font-size: 0.7rem;
    }

    .banner-button {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        margin-top: 0.3rem;
    }
}

/* Modal Responsive Enhancements */
@media (max-width: 600px) {
    .announcement-modal {
        padding: 0.75rem;
    }

    .announcement-content {
        max-width: 100%;
        padding: 1.5rem 1rem;
        border-radius: 1.25rem;
        max-height: 90vh;
        overflow-y: auto;
    }

    .announcement-features {
        margin-bottom: 1rem;
    }

    .feature-item {
        padding: 0.7rem;
        gap: 0.75rem;
    }

    .feature-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
        border-radius: 0.5rem;
    }

    .feature-text h4 {
        font-size: 0.85rem;
    }

    .feature-text p {
        font-size: 0.75rem;
    }
}

@media (max-width: 360px) {
    .announcement-content {
        padding: 1.25rem 0.85rem;
    }

    .announcement-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .announcement-title {
        font-size: 1.4rem;
    }

    .announcement-button {
        padding: 0.85rem;
        font-size: 0.9rem;
    }
}
