/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #454343 0%, #000000 100%);
    min-height: 100vh;
    max-height: 100vh;
    color: #fff;
    overflow: hidden;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.logo .peak {
    color: #ff5800;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.user-settings {
    flex-shrink: 0;
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    animation: float 6s ease-in-out infinite;
}

.cloud:nth-child(1) {
    width: 100px;
    height: 50px;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.cloud:nth-child(2) {
    width: 80px;
    height: 40px;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.cloud:nth-child(3) {
    width: 120px;
    height: 60px;
    top: 40%;
    left: 70%;
    animation-delay: -1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

/* Login Section */
.login-section {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.login-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.login-container:hover::before {
    left: 100%;
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* Form Styles */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
}

.form-group input {
    padding: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    transform: translateY(-1px);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-container input:checked + .checkmark {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    border-color: transparent;
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #ff6b6b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ffa500;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.3s;
}

.login-button:hover::before {
    left: 100%;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

/* Register Link */
.register-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.register-link p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.register {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.register:hover {
    color: #ffa500;
    text-decoration: underline;
}

/* Error and Success Messages */
.error-message {
    background: #dc2626 !important;
    color: #ffffff !important;
    padding: 0.9rem !important;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid #991b1b !important;
    backdrop-filter: blur(10px);
    display: none;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.success-message {
    background: #10b981 !important;
    color: #ffffff !important;
    padding: 0.9rem !important;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 2px solid #059669 !important;
    backdrop-filter: blur(10px);
    display: none;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6) !important;
}

.info-message {
    background: rgba(59, 130, 246, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(10px);
    display: none;
}

.warning-message {
    background: rgba(245, 158, 11, 0.9);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    backdrop-filter: blur(10px);
    display: none;
}

/* Dashboard Link */
.dashboard-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    text-align: center;
    transition: transform 0.3s ease;
    font-weight: 600;
}

.dashboard-link:hover {
    transform: translateY(-2px);
}

/* Loading State */
.login-button.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Clear Data Link */
.clear-data-link {
    display: inline-block;
    margin-top: 0.5rem;
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(239, 68, 68, 0.8);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.clear-data-link:hover {
    transform: translateY(-1px);
    background: rgba(239, 68, 68, 1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .main-content {
        padding: 1rem;
    }

    .login-container {
        padding: 2rem;
    }

    .login-header h2 {
        font-size: 1.7rem;
    }

    .form-options {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .login-header h2 {
        font-size: 1.5rem;
    }
}

/* Animation für Form Elements */
.form-group {
    animation: slideUp 0.6s ease-out;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-options { animation: slideUp 0.6s ease-out 0.3s both; }
.login-button { animation: slideUp 0.6s ease-out 0.4s both; }
.register-link { animation: slideUp 0.6s ease-out 0.5s both; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}