/* TikTok-Style Login Page CSS */

/* Reset and base styles */
body.page-template-page-login {
    background: #000 !important;
    overflow: hidden !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
}

body.page-template-page-login header,
body.page-template-page-login footer,
body.page-template-page-login .footer-menu {
    display: none !important;
}

/* Login page container */
.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Background animations */
.login-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(253, 1, 49, 0.8) 0%, 
        rgba(255, 20, 147, 0.6) 50%, 
        rgba(138, 43, 226, 0.8) 100%);
    z-index: 2;
}

/* Floating shapes animation */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 20s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    left: 70%;
    animation-delay: 5s;
    animation-duration: 18s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    left: 40%;
    animation-delay: 10s;
    animation-duration: 22s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    left: 20%;
    animation-delay: 15s;
    animation-duration: 25s;
}

.shape-5 {
    width: 120px;
    height: 120px;
    left: 80%;
    animation-delay: 8s;
    animation-duration: 19s;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
.login-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.back-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    color: #fff;
}

.login-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-spacer {
    width: 44px;
}

/* Main container */
.login-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    z-index: 10;
    padding: 100px 20px 20px;
}

.login-content {
    width: 100%;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 35px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Form toggle */
.form-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    margin-bottom: 30px;
}

.toggle-btn {
    flex: 1;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 20px;
    border-radius: 21px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: #fd0131;
    color: #fff;
    box-shadow: 0 4px 15px rgba(253, 1, 49, 0.4);
}

.toggle-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Auth forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

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

/* Form header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.form-header p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 16px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(255, 255, 255, 0.5);
    z-index: 2;
}

.form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 16px 20px 16px 50px;
    color: #fff;
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #fd0131;
    box-shadow: 0 0 0 3px rgba(253, 1, 49, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Password toggle */
.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Turnstile */
.cf-turnstile {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Form actions */
.form-actions {
    margin-top: 30px;
}

.auth-btn {
    width: 100%;
    background: linear-gradient(135deg, #fd0131 0%, #ff1744 100%);
    border: none;
    border-radius: 15px;
    padding: 16px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(253, 1, 49, 0.3);
}

.auth-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(253, 1, 49, 0.4);
}

.auth-btn:active {
    transform: translateY(0);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px 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); }
}

/* Links */
.forgot-link {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-top: 20px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #fd0131;
}

.terms-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    margin-top: 20px;
    line-height: 1.5;
}

.terms-link,
.privacy-link {
    color: #fd0131;
    text-decoration: none;
}

.terms-link:hover,
.privacy-link:hover {
    text-decoration: underline;
}

/* Message container */
.auth-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

.auth-message.success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.auth-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

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

/* Responsive design */
@media (max-width: 768px) {
    .login-nav {
        padding: 15px 20px;
    }
    
    .login-logo h1 {
        font-size: 24px;
    }
    
    .back-home-btn,
    .nav-spacer {
        width: 40px;
        height: 40px;
    }
    
    .login-container {
        padding: 80px 15px 15px;
    }
    
    .login-content {
        padding: 30px 25px;
        border-radius: 15px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .form-group input {
        padding: 14px 18px 14px 45px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .input-icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }
    
    .password-toggle {
        right: 14px;
    }
    
    .auth-btn {
        padding: 14px 18px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .toggle-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .login-nav {
        padding: 12px 15px;
    }
    
    .login-logo h1 {
        font-size: 20px;
    }
    
    .back-home-btn,
    .nav-spacer {
        width: 36px;
        height: 36px;
    }
    
    .login-container {
        padding: 70px 10px 10px;
    }
    
    .login-content {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .form-header h2 {
        font-size: 20px;
    }
    
    .form-group input {
        padding: 12px 16px 12px 40px;
        font-size: 16px;
        border-radius: 10px;
    }
    
    .input-icon {
        left: 12px;
        width: 16px;
        height: 16px;
    }
    
    .password-toggle {
        right: 12px;
    }
    
    .auth-btn {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    .toggle-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .form-toggle {
        border-radius: 20px;
    }
    
    .toggle-btn.active {
        border-radius: 16px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-content {
        background: rgba(0, 0, 0, 0.95);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .form-group input {
        background: rgba(255, 255, 255, 0.15);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .shape,
    .auth-form,
    .auth-message {
        animation: none;
    }
    
    .auth-btn {
        transition: none;
    }
}

/* Dark mode support (if user has dark mode preference) */
@media (prefers-color-scheme: dark) {
    .login-page {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
}