/*
Theme Name: EasyGantt Theme
Theme URI: https://example.com/easygantt-theme
Author: Your Name
Author URI: https://example.com
Description: Ein modernes Theme für die EasyGantt Gantt-Diagramm-Anwendung. Zeigt die Gantt-Anwendung als Startseite mit einer modernen Anmeldemaske.
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: easygantt-theme
Tags: gantt, project-management, modern, minimal
*/

/* Reset und Basis-Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

/* Login-Seite Styles */
.easygantt-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.easygantt-login-page::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.easygantt-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.easygantt-login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.easygantt-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.easygantt-login-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.easygantt-login-header p {
    color: #666;
    font-size: 1rem;
}

.easygantt-login-form {
    margin-top: 2rem;
}

.easygantt-form-group {
    margin-bottom: 1.5rem;
}

.easygantt-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.easygantt-form-group input[type="text"],
.easygantt-form-group input[type="password"],
.easygantt-form-group input[type="email"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fff;
}

.easygantt-form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.easygantt-form-group input::placeholder {
    color: #999;
}

.easygantt-remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.easygantt-remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: #667eea;
}

.easygantt-remember-me label {
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.easygantt-login-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.easygantt-login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.easygantt-login-submit:active {
    transform: translateY(0);
}

.easygantt-login-links {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.easygantt-login-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.easygantt-login-links a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.easygantt-error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.easygantt-success-message {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Gantt-App Container */
.easygantt-app-wrapper {
    min-height: 100vh;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .easygantt-login-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .easygantt-login-header h1 {
        font-size: 2rem;
    }
}

/* Loading Animation */
.easygantt-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.easygantt-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

