/* ============================================
   Reset & Base Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00a1b0;
    --primary-dark: #008a97;
    --primary-light: #00b8c9;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #e1e8ed;
    --shadow-sm: 0 2px 8px rgba(0, 161, 176, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 161, 176, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 161, 176, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.log-in-form {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #00a1b0 100%); */
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    /* min-height: 100vh; */
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 0;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   Animated Background with Icons
   ============================================ */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 161, 176, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 184, 201, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 138, 151, 0.15) 0%, transparent 50%);
    opacity: 0.8;
}

.bg-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.30;
}

.bg-icon {
    position: absolute;
    color: var(--primary-color);
    animation: iconFloat 20s infinite ease-in-out;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.bg-icon svg {
    width: 100%;
    height: 100%;
}

/* Chat Bubbles */
.chat-bubble-1 {
    font-size: 50px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 18s;
}

.chat-bubble-2 {
    font-size: 50px;
    top: 70%;
    right: 8%;
    animation-delay: 5s;
    animation-duration: 22s;
}

/* WhatsApp Icon */
.whatsapp-icon {
    width: 40px;
    height: 40px;
    top: 25%;
    right: 12%;
    animation-delay: 2s;
    animation-duration: 20s;
    color: rgba(37, 211, 102, 0.7);
}

.bg-icon img {
    width: 40px;
}

/* Instagram Icon */
.instagram-icon {
    width: 40px;
    height: 40px;
    top: 60%;
    left: 7%;
    animation-delay: 7s;
    animation-duration: 19s;
    color: rgba(225, 48, 108, 0.7);
}

/* Facebook Icon */
.facebook-icon {
    width: 65px;
    height: 65px;
    top: 15%;
    left: 70%;
    animation-delay: 3s;
    animation-duration: 21s;
    color: rgba(24, 119, 242, 0.7);
}

/* Message Notification */
.message-notification {
    width: 55px;
    height: 55px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 17s;
    color: rgba(255, 193, 7, 0.7);
}

/* Phone Icon */
.phone-icon {
    width: 70px;
    height: 70px;
    top: 50%;
    right: 20%;
    animation-delay: 6s;
    animation-duration: 23s;
}

/* Profile Icon */
.profile-icon {
    width: 60px;
    height: 60px;
    bottom: 10%;
    right: 25%;
    animation-delay: 8s;
    animation-duration: 18s;
}

/* Screenshot Icon */
.screenshot-icon {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 20%;
    animation-delay: 1s;
    animation-duration: 16s;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.6;
    }

    25% {
        transform: translate(30px, -40px) rotate(5deg) scale(1.1);
        opacity: 0.8;
    }

    50% {
        transform: translate(-20px, -60px) rotate(-5deg) scale(0.9);
        opacity: 0.7;
    }

    75% {
        transform: translate(40px, -20px) rotate(3deg) scale(1.05);
        opacity: 0.85;
    }
}

.bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: shapePulse 25s infinite ease-in-out;
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    bottom: -200px;
    right: -200px;
    animation-delay: 8s;
}

.bg-shape-3 {
    width: 350px;
    height: 350px;
    background: var(--primary-dark);
    top: 50%;
    right: -150px;
    animation-delay: 15s;
}

@keyframes shapePulse {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.2;
    }

    33% {
        transform: scale(1.3) translate(60px, -40px);
        opacity: 0.25;
    }

    66% {
        transform: scale(0.9) translate(-40px, 60px);
        opacity: 0.15;
    }
}

/* ============================================
   Container & Wrapper
   ============================================ */
.login-container {
    width: 100%;
    max-width: 480px;
    position: relative;
    z-index: 1;
    margin: auto;
}

.login-wrapper {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 0 60px rgba(0, 161, 176, 0.2);
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Background Shapes
   ============================================ */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    filter: blur(40px);
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    top: -125px;
    right: -125px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--primary-dark);
    top: 50%;
    left: -90px;
    animation-delay: 10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ============================================
   Content Sections
   ============================================ */
.login-content {
    position: relative;
    z-index: 1;
    padding: 48px 40px;
    background: transparent;
}

.logo-section {
    text-align: center;
    margin-bottom: 40px;
}

.logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: var(--primary-color);
    animation: pulse 2s infinite ease-in-out;
    position: relative;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(0, 161, 176, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s infinite ease-in-out;
    z-index: -1;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.logo-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 161, 176, 0.2));
}

.site-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.site-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   Login Section
   ============================================ */
.login-section {
    margin-bottom: 32px;
}

.google-login-btn {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.google-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 161, 176, 0.1), transparent);
    transition: left 0.5s ease;
}

.google-login-btn:hover::before {
    left: 100%;
}

.google-login-btn:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(0, 161, 176, 0.05) 0%, rgba(0, 184, 201, 0.05) 100%);
    box-shadow:
        0 6px 20px rgba(0, 161, 176, 0.25),
        0 0 0 4px rgba(0, 161, 176, 0.1);
    transform: translateY(-2px);
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.google-login-btn .btn-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.google-login-btn:hover .btn-icon {
    transform: scale(1.1);
}

.google-login-btn .btn-text {
    font-weight: 600;
    letter-spacing: 0.3px;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(0, 161, 176, 0.3);
    transform: scale(0);
    animation: ripple 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   Divider
   ============================================ */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
}

.divider-text {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================
   Privacy Note & Footer
   ============================================ */
.privacy-note {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
}

.footer-section {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.help-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.link:hover {
    color: var(--primary-dark);
}

.link:hover::after {
    width: 100%;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    .login-content {
        padding: 40px 32px;
    }

    .site-title {
        font-size: 28px;
    }

    .site-tagline {
        font-size: 15px;
    }

    .google-login-btn {
        padding: 14px 20px;
        font-size: 15px;
    }

    .bg-icon {
        opacity: 0.1;
    }
}

@media (max-width: 480px) {


    .login-content {
        padding: 32px 24px;
    }

    .logo-icon {
        width: 64px;
        height: 64px;
        margin-bottom: 20px;
    }

    .site-title {
        font-size: 24px;
    }

    .site-tagline {
        font-size: 14px;
    }

    .google-login-btn {
        padding: 12px 18px;
        font-size: 14px;
    }

    .google-login-btn .btn-icon {
        width: 20px;
        height: 20px;
    }

    .shape-1 {
        width: 150px;
        height: 150px;
    }

    .shape-2 {
        width: 120px;
        height: 120px;
    }

    .shape-3 {
        width: 80px;
        height: 80px;
    }

    .bg-shape-1,
    .bg-shape-2,
    .bg-shape-3 {
        filter: blur(40px);
    }

    .bg-icon {
        width: 40px !important;
        height: 40px !important;
        opacity: 0.08;
    }

    .login-container {
        max-width: 100%;
        margin: 0 15px;
    }
}

@media (max-width: 360px) {
    .login-content {
        padding: 28px 20px;
    }

    .site-title {
        font-size: 22px;
    }
}

/* ============================================
   Accessibility
   ============================================ */
.google-login-btn:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow:
        0 6px 20px rgba(0, 161, 176, 0.25),
        0 0 0 4px rgba(0, 161, 176, 0.2);
}

.link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   Loading State
   ============================================ */
.google-login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.google-login-btn.loading .btn-text::after {
    content: '...';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}


.note {
    margin-top: 0;
}