@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Coded By Lynex / t.me/lyn5x */

:root {
    --primary-color: #fe2c55;
    --primary-hover: #ff375f;
    --primary-active: #e62a4f;
    --background-color: #F8F8F8;
    --text-color: #161823;
    --border-color: #E6E6E6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

h1, h2, h3, .nav-link, .language-btn, .login-button, .submit-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.subtitle, p, input, button {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

body {
    background-color: var(--background-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.nav-left {
    display: flex;
    align-items: center;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-selector {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #fe2c55, #ff375f);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(254, 44, 85, 0.2);
}

.language-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 44, 85, 0.3);
}

.language-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.language-btn:hover i {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
    animation: slideIn 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-menu.show {
    display: block;
}

.language-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.95);
    transform: rotate(45deg);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.language-menu a {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.language-menu a:hover {
    background: rgba(254, 44, 85, 0.1);
    color: var(--primary-color);
    padding-left: 1.5rem;
}

.tiktok-logo {
    height: 32px;
    width: auto;
    margin-right: 1rem;
}

.login-logo {
    width: 80px;
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
}

.logo-container {
    width: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

.container {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.login-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.illustration {
    flex: 1.2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem;
    padding-left: 0;
    margin-left: -4rem;
}

.login-illustration {
    max-width: 85%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
	border-radius: 50px;
}

.login-form {
    flex: 0.8;
    max-width: 400px;
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;  
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    text-align: center;  
}

.subtitle {
    color: #666;
   
    text-align: center;  
    font-size: 1rem;
    line-height: 1.5;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left; 
}

input {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    text-align: left;  
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(254, 44, 85, 0.1);
}

input::placeholder {
    color: #999;
    transition: all 0.3s ease;
}

input:focus::placeholder {
    opacity: 0.7;
    transform: translateX(5px);
}

.error-message {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.login-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;  
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.login-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 44, 85, 0.3);
    background-color: #ff375f;
}

.login-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(254, 44, 85, 0.2);
}


.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


.login-button.loading {
    background-color: #ff375f;
    cursor: not-allowed;
}

.login-button.loading .spinner {
    display: inline-block;
}

.login-button.loading span {
    opacity: 0.7;
}


.login-button span {
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}


.password-form {
    width: 100%;
    margin-top: 2rem;
}

.password-input-container {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    background: #F1F1F2;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.password-input-container:focus-within {
    background: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.password-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    display: flex;
    align-items: center;
}

.password-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}

.password-input::placeholder {
    color: #86878B;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    background: rgba(22, 24, 35, 0.06);
}

.eye-icon, .eye-off-icon {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to right, #fe2c55, #ff3b5c);
    color: white;
    border: none;
    border-radius: 50px;  
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(254, 44, 85, 0.2);
}

.submit-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 44, 85, 0.3);
    background: linear-gradient(to right, #ff375f, #ff4d6d);
}

.submit-button:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.submit-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(254, 44, 85, 0.2);
}

.submit-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.error-message {
    background: #FFEDEF;
    color: var(--primary-color);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.error-message::before {
    
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.8rem;
}

.signup-prompt {
    margin-top: 2rem;
    text-align: center;
}

.signup-prompt p {
    margin: 0.5rem 0;
    color: #666;
}

.signup-link, .support-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.footer {
    background-color: #000;
    color: #fff;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h3 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.footer-left span {
    color: #888;
}

.footer-right {
    display: flex;
    gap: 2rem;
}

.footer-right a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: #fff;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
}

.user-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.profile-picture {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
}

.username {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nickname {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.bio-text {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
    max-width: 100%;
    word-wrap: break-word;
}

.verified-badge {
    color: #2EABDD;
    font-size: 1rem;
    filter: drop-shadow(0 0 4px rgba(46, 171, 221, 0.5));
}

.user-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    padding: 1rem 0;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
}

.user-bio {
    padding: 1rem 0;
}

.user-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.tiktok-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(to right, #00f2ea, #ff0050);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tiktok-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tiktok-button i {
    font-size: 1.2rem;
}


.privacy-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1rem 0;
    padding: 0.5rem 0;
}


.privacy-checkbox input[type="checkbox"] {
    display: none;
}

.privacy-checkbox label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
    user-select: none;
}

.privacy-checkbox label a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-checkbox label a:hover {
    text-decoration: underline;
}


.privacy-checkbox label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}


.privacy-checkbox label:after {
    content: '';
    position: absolute;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}


.privacy-checkbox input[type="checkbox"]:checked + label:before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.privacy-checkbox input[type="checkbox"]:checked + label:after {
    opacity: 1;
}


.privacy-error {
    color: var(--primary-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    background-color: rgba(254, 44, 85, 0.1);
    display: none;
    align-items: center;
    gap: 8px;
}

.privacy-error.show {
    display: flex;
}

.privacy-error i {
    color: var(--primary-color);
    font-size: 1rem;
}


.privacy-checkbox.error label:before {
    border-color: var(--primary-color);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}


@media (max-width: 768px) {
    .privacy-checkbox label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        padding: 0;
        min-height: 100vh;
    }

    .nav-right .nav-link {
        display: none;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .language-selector {
        right: 1rem;
    }

    .tiktok-logo {
        height: 28px;
    }

    .language-menu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 768px) {
    .user-info {
        padding: 1.5rem;
        margin: 1rem;
    }

    .user-header {
        gap: 1rem;
    }

    .profile-picture {
        width: 72px;
        height: 72px;
    }

    .username {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .nav-right {
        gap: 1rem;
    }

    .language-selector {
        margin-left: 0.5rem;
    }

    .language-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .language-menu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        padding: 0;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }

    .login-container {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 1.5rem;
    }

    .illustration {
        display: none;
    }

    .login-form {
        max-width: 100%;
        width: 100%;
        padding: 1.5rem;
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input {
        padding: 0.8rem 1rem;
        font-size: 16px;
    }

    .login-button {
        padding: 0.8rem;
        margin-top: 1.5rem;
        font-size: 1rem;
    }

    .user-info {
        padding: 1.5rem;
        margin-top: 1.5rem;
        border-radius: 12px;
    }

    .profile-picture {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .user-details h2 {
        font-size: 1.3rem;
    }

    .user-details p {
        font-size: 1rem;
    }

    .user-stats {
        gap: 1.5rem;
        padding: 1rem 0;
        margin: 1rem 0;
    }

    .stat-item {
        flex: 1;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .contact-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .tiktok-logo {
        height: 28px;
    }

    .navbar {
        padding: 0.8rem 1rem;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .nav-right {
        display: none;
    }

    .nav-right-mobile {
        display: flex;
        align-items: center;
    }

    .menu-toggle {
        background: none;
        border: none;
        padding: 0.5rem;
        margin-left: auto;
        cursor: pointer;
        color: var(--text-color);
    }

    .footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-section ul li {
        margin: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }

    .footer-right {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0;
    }

    .login-container {
        padding: 0.8rem;
    }

    .illustration {
        padding: 1rem;
    }

    .login-illustration {
        max-width: 90%;
    }

    .login-form {
        padding: 1.2rem;
    }

    .user-stats {
        gap: 1rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .footer {
        padding: 1.5rem 0.8rem 0.8rem;
    }

    .tiktok-logo {
        height: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0;
        padding: 0;
        min-height: 100vh;
    }

    .nav-right .nav-link {
        display: none;
    }

    .navbar {
        padding: 0.5rem 1rem;
    }

    .language-selector {
        margin-left: auto;
    }

    .tiktok-logo {
        height: 28px;
    }

    .language-menu {
        right: 0;
        left: auto;
    }
}


.notification {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff1f0;
    border-radius: 8px;
    margin: 8px 0;
    border: 1px solid rgba(254, 44, 85, 0.2);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.2s ease;
}

.notification.show {
    transform: scale(1);
    opacity: 1;
}

.notification.error {
    background: #fff1f0;
}

.notification-icon {
    color: #fe2c55;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

.notification-content {
    font-size: 0.9rem;
    color: #fe2c55;
}


.error-popup {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(254, 44, 85, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
    min-width: 300px;
}

.error-popup.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.error-popup i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.error-popup-text {
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

@keyframes slideDown {
    from {
        transform: translate(-50%, -100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .error-popup {
        width: 90%;
        max-width: none;
        top: 10px;
    }
}


.username-error {
    display: none;
    background: rgba(254, 44, 85, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    animation: slideIn 0.3s ease-out;
    align-items: center;
    gap: 10px;
}

.username-error.show {
    display: flex;
}

.username-error i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.username-error-text {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.form-group.error input {
    border-color: var(--primary-color);
    background-color: rgba(254, 44, 85, 0.05);
}


@media (max-width: 768px) {
    .username-error {
        font-size: 0.85rem;
        padding: 0.7rem 0.9rem;
    }
}
