/* ==========================================
   SiteRooster Login & Register Pages
   Professional polished design
   ========================================== */

:root {
    --siterooster-orange: #ff6b47;
    --siterooster-coral: #ff8a73;
    --siterooster-dark: #1a1a2e;
    --siterooster-cream: #fef7f3;
    
    --status-green: #10b981;
    --status-green-bg: #ecfdf5;
    --status-red: #ef4444;
    --status-red-bg: #fef2f2;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ==========================================
   Floating Icon Animations
   ========================================== */
@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(2deg); }
    50% { transform: translate(-5px, -25px) rotate(-1deg); }
    75% { transform: translate(-15px, -10px) rotate(1deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-12px, 10px) rotate(-2deg); }
    50% { transform: translate(8px, 20px) rotate(1deg); }
    75% { transform: translate(15px, 5px) rotate(-1deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(15px, -20px); }
    66% { transform: translate(-10px, -10px); }
}

@keyframes float4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, 15px); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(8px, 12px); }
    75% { transform: translate(-8px, -8px); }
}

@keyframes floatSubtle1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -8px); }
}

@keyframes floatSubtle2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-6px, 10px); }
}

.float-1 { animation: float1 8s ease-in-out infinite; }
.float-2 { animation: float2 9s ease-in-out infinite; }
.float-3 { animation: float3 7s ease-in-out infinite; }
.float-4 { animation: float4 10s ease-in-out infinite; }
.float-5 { animation: float5 11s ease-in-out infinite; }
.float-6 { animation: float1 12s ease-in-out infinite reverse; }
.float-subtle-1 { animation: floatSubtle1 6s ease-in-out infinite; }
.float-subtle-2 { animation: floatSubtle2 7s ease-in-out infinite; }
.float-subtle-3 { animation: floatSubtle1 8s ease-in-out infinite reverse; }
.float-subtle-4 { animation: floatSubtle2 9s ease-in-out infinite reverse; }

/* ==========================================
   Page Container
   ========================================== */
.siterooster-login {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.siterooster-login * {
    box-sizing: border-box;
}

/* Hide WordPress elements */
.entry-title,
.page-title,
.wp-block-post-title,
.entry-content > *:not(.siterooster-login) {
    display: none !important;
}

/* ==========================================
   Dot Pattern Background - Dots provide the color
   ========================================== */
.login-dots-left,
.login-dots-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 107, 71, 0.18) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

.login-dots-left {
    left: 0;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0) 55%);
    -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0) 55%);
}

.login-dots-right {
    right: 0;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0) 55%);
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 0%, rgba(0,0,0,0.6) 20%, rgba(0,0,0,0) 55%);
}

/* ==========================================
   Floating Decorative Icons
   ========================================== */
.login-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Colored icons with background */
.floating-icon.colored {
    width: 48px;
    height: 48px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.floating-icon.colored svg {
    width: 24px;
    height: 24px;
}

/* Subtle gray circles */
.floating-icon.subtle {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}

/* Icon colors */
.floating-icon.orange svg { color: var(--siterooster-orange); }
.floating-icon.coral svg { color: var(--siterooster-coral); }
.floating-icon.green svg { color: var(--status-green); }
.floating-icon.teal svg { color: #14b8a6; }
.floating-icon.blue svg { color: #3b82f6; }
.floating-icon.purple svg { color: #8b5cf6; }

/* Icon positions - relative to viewport center */
/* Top Left */
.fi-top-left { top: calc(50% - 220px); left: calc(50% - 320px); }
.fi-top-left-subtle { top: calc(50% - 280px); left: calc(50% - 260px); width: 20px; height: 20px; }

/* Top Right */
.fi-top-right { top: calc(50% - 250px); left: calc(50% + 280px); }
.fi-top-right-subtle { top: calc(50% - 180px); left: calc(50% + 340px); width: 24px; height: 24px; }

/* Left Middle */
.fi-left-mid { top: calc(50% + 20px); left: calc(50% - 350px); }
.fi-left-mid-subtle { top: calc(50% - 60px); left: calc(50% - 290px); width: 16px; height: 16px; }

/* Right Middle */
.fi-right-mid { top: calc(50% - 30px); left: calc(50% + 310px); }
.fi-right-mid-subtle { top: calc(50% + 80px); left: calc(50% + 270px); width: 28px; height: 28px; }

/* Bottom Left */
.fi-bottom-left { top: calc(50% + 200px); left: calc(50% - 300px); }
.fi-bottom-left-subtle { top: calc(50% + 260px); left: calc(50% - 360px); width: 20px; height: 20px; }

/* Bottom Right */
.fi-bottom-right { top: calc(50% + 230px); left: calc(50% + 290px); }
.fi-bottom-right-subtle { top: calc(50% + 170px); left: calc(50% + 350px); width: 18px; height: 18px; }

/* ==========================================
   Center Content Wrapper
   ========================================== */
.login-center {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    min-height: 100vh;
}

/* ==========================================
   Login Container (Card)
   ========================================== */
.login-container {
    width: 100%;
    max-width: 520px;
    background: white;
    border-radius: var(--radius-xl);
    padding: 36px 40px;
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ==========================================
   Logo
   ========================================== */
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

/* ==========================================
   Header
   ========================================== */
.login-header {
    text-align: center;
    margin-bottom: 24px;
}

.login-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--siterooster-dark);
    margin: 0 0 6px 0;
    letter-spacing: -0.02em;
}

.login-header p {
    font-size: 14px;
    color: var(--gray-500);
    margin: 0;
}

/* ==========================================
   Messages
   ========================================== */
.login-message {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: 24px;
    text-align: center;
}

.login-message.error {
    background: var(--status-red-bg);
    color: var(--status-red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.login-message.success {
    background: var(--status-green-bg);
    color: var(--status-green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ==========================================
   Form
   ========================================== */
.login-form {
    margin-bottom: 0;
}

/* Two-column form row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 11px 14px;
    font-size: 14px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    color: var(--siterooster-dark);
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--siterooster-orange);
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 107, 71, 0.1);
}

.form-group input::placeholder {
    color: var(--gray-400);
}

/* Password input with toggle */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 60px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
}

.password-toggle:hover {
    color: var(--siterooster-orange);
}

/* Password strength indicator */
.password-strength,
.password-match {
    font-size: 12px;
    margin-top: 6px;
    min-height: 18px;
}

/* Terms text */
.terms-text {
    font-size: 11px;
    color: var(--gray-400);
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

.terms-text a {
    color: var(--siterooster-orange);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
    display: block;
    width: 100%;
    padding: 11px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--siterooster-orange) 0%, var(--siterooster-coral) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 71, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 71, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    padding: 10px 20px;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

/* ==========================================
   Forgot Password Link
   ========================================== */
.login-forgot {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 12px;
}

.login-forgot a {
    font-size: 13px;
    color: var(--gray-500);
    text-decoration: none;
}

.login-forgot a:hover {
    color: var(--siterooster-orange);
}

/* ==========================================
   Divider
   ========================================== */
.login-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

.login-divider span {
    position: relative;
    background: white;
    padding: 0 14px;
    font-size: 12px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   Footer (Outside Card)
   ========================================== */
.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer a {
    font-size: 13px;
    color: var(--gray-400);
    text-decoration: none;
}

.login-footer a:hover {
    color: var(--siterooster-orange);
    text-decoration: underline;
}

/* ==========================================
   Loading State
   ========================================== */
.btn-login.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1200px) {
    /* Bring icons closer on smaller screens */
    .fi-top-left { left: calc(50% - 280px); }
    .fi-top-right { left: calc(50% + 240px); }
    .fi-left-mid { left: calc(50% - 300px); }
    .fi-right-mid { left: calc(50% + 260px); }
    .fi-bottom-left { left: calc(50% - 260px); }
    .fi-bottom-right { left: calc(50% + 250px); }
    
    .fi-top-left-subtle { left: calc(50% - 220px); }
    .fi-top-right-subtle { left: calc(50% + 290px); }
    .fi-left-mid-subtle { left: calc(50% - 250px); }
    .fi-right-mid-subtle { left: calc(50% + 230px); }
    .fi-bottom-left-subtle { left: calc(50% - 300px); }
    .fi-bottom-right-subtle { left: calc(50% + 300px); }
}

@media (max-width: 900px) {
    /* Hide floating icons on tablet */
    .login-floating-icons {
        display: none;
    }
    
    /* Fade dots more aggressively */
    .login-dots-left {
        mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
        -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
    }
    
    .login-dots-right {
        mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
        -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 40%);
    }
}

@media (max-width: 580px) {
    .login-container {
        padding: 28px 24px;
        border-radius: var(--radius-lg);
        max-width: 100%;
    }
    
    /* Stack form rows on mobile */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .login-header h1 {
        font-size: 20px;
    }
    
    .login-logo img {
        width: 36px;
        height: 36px;
    }
    
    .login-center {
        padding: 24px 16px;
    }
}