/* ========================================
   FlowStudio - Login Page Styles
   ======================================== */

.login-theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1001;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: rotate(180deg);
}

[data-theme="dark"] .login-theme-toggle {
    background: rgba(31, 41, 55, 0.8);
    border-color: rgba(75, 85, 99, 0.5);
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #93C5FD 100%);
    overflow: hidden;
    z-index: -1;
    transition: background 0.3s ease;
}

[data-theme="dark"] .login-background {
    background: linear-gradient(135deg, #1F2937 0%, #111827 50%, #374151 100%);
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-80vh) translateX(20vw);
        opacity: 0.8;
    }
    90% {
        opacity: 0.6;
    }
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 1100px;
    background: var(--bg-primary);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: grid;
    grid-template-columns: 45% 55%;
    transition: background 0.3s ease;
    min-height: 600px;
}

[data-theme="dark"] .login-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

/* Left Side - Branding */
.login-left {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    padding: 3rem 2.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.branding-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.login-logo {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

.login-title {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    line-height: 1.2;
}

.login-subtitle {
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-features li {
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.5;
}

.login-features li svg {
    flex-shrink: 0;
}

/* Right Side - Form */
.login-right {
    padding: 3rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-primary);
}

.login-form-header {
    margin-bottom: 2rem;
}

.login-form-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.form-label {
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9375rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
    font-family: var(--font-sans);
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

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

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.login-footer p {
    margin: 0.5rem 0;
}

.login-footer a {
    color: #3B82F6;
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

.login-footer strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Alert Messages */
.alert {
    padding: 0.875rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #065F46;
    border-left: 4px solid #10B981;
}

[data-theme="dark"] .alert-success {
    background: rgba(16, 185, 129, 0.2);
    color: #6EE7B7;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #991B1B;
    border-left: 4px solid #EF4444;
}

[data-theme="dark"] .alert-error {
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1E40AF;
    border-left: 4px solid #3B82F6;
}

[data-theme="dark"] .alert-info {
    background: rgba(59, 130, 246, 0.2);
    color: #93C5FD;
}

/* Field Errors */
.field-error {
    color: #EF4444;
    font-size: 0.8125rem;
    display: block;
    margin-top: 0.375rem;
    font-weight: 500;
}

[data-theme="dark"] .field-error {
    color: #FCA5A5;
}

/* Responsive Tablet and Medium Screens */
@media (max-width: 1200px) {
    .login-card {
        max-width: 950px;
    }
    
    .login-left {
        padding: 2.5rem 2rem;
    }
    
    .login-right {
        padding: 2.5rem 3rem;
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-subtitle {
        font-size: 0.9375rem;
    }
    
    .login-features li {
        font-size: 0.875rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 1024px) {
    .login-container {
        padding: 1.5rem;
    }
    
    .login-card {
        max-width: 900px;
        grid-template-columns: 42% 58%;
    }
    
    .login-left {
        padding: 2rem;
    }
    
    .login-right {
        padding: 2rem 2.5rem;
    }
    
    .logo-container {
        width: 90px;
        height: 90px;
    }
    
    .login-logo {
        width: 90px !important;
        height: 90px !important;
    }
    
    .login-title {
        font-size: 1.875rem;
    }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .login-left {
        padding: 2rem 1.5rem;
        min-height: 200px;
    }
    
    .logo-container {
        width: 80px;
        height: 80px;
        margin: 0 auto 1.5rem;
    }
    
    .login-logo {
        width: 80px !important;
        height: 80px !important;
    }
    
    .login-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .login-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 0;
    }
    
    .login-features {
        display: none;
    }
    
    .login-right {
        padding: 2rem 1.5rem;
    }
    
    .login-form-header h2 {
        font-size: 1.5rem;
    }
    
    .login-form-header p {
        font-size: 0.9375rem;
    }
    
    .form-control {
        padding: 0.625rem 0.875rem;
        font-size: 0.9375rem;
    }
    
    .btn-login {
        padding: 0.75rem;
        font-size: 0.9375rem;
    }
    
    .login-theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* Responsive Small Mobile */
@media (max-width: 480px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-card {
        border-radius: 0.75rem;
    }
    
    .login-left {
        padding: 1.5rem 1rem;
        min-height: 160px;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .login-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .login-subtitle {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .login-right {
        padding: 1.5rem 1rem;
    }
    
    .login-form-header {
        margin-bottom: 1.5rem;
    }
    
    .login-form-header h2 {
        font-size: 1.375rem;
    }
    
    .login-form-header p {
        font-size: 0.875rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.375rem;
    }
    
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .btn-login {
        padding: 0.625rem;
        font-size: 0.875rem;
        margin-top: 1rem;
    }
    
    .login-footer {
        margin-top: 1.25rem;
        font-size: 0.8125rem;
    }
    
    .login-footer p:last-child {
        font-size: 0.6875rem !important;
    }
    
    .alert {
        padding: 0.75rem;
        font-size: 0.875rem;
        margin-bottom: 1.25rem;
    }
    
    .login-theme-toggle {
        top: 0.75rem;
        right: 0.75rem;
        width: 40px;
        height: 40px;
    }
    
    .login-theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Reduziere Partikel-Animation auf Mobile */
    .particle {
        width: 6px;
        height: 6px;
    }
}

/* Landscape Mode auf kleinen Bildschirmen */
@media (max-height: 600px) and (orientation: landscape) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        grid-template-columns: 1fr 1fr;
        max-width: 900px;
    }
    
    .login-left {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .logo-container {
        width: 60px;
        height: 60px;
        margin: 0 auto 1rem;
    }
    
    .login-logo {
        width: 60px !important;
        height: 60px !important;
    }
    
    .login-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .login-subtitle {
        font-size: 0.875rem;
    }
    
    .login-features {
        display: none;
    }
    
    .login-right {
        padding: 1.5rem;
    }
    
    .login-form-header {
        margin-bottom: 1rem;
    }
    
    .form-group {
        margin-bottom: 0.75rem;
    }
    
    .btn-login {
        margin-top: 1rem;
    }
    
    .login-footer {
        margin-top: 1rem;
    }
}

