/* ============================================
   Uni-Planner - Authentication CSS
   Login & Register Seiten
   ============================================ */
/* GLOBALER VERLAUF ÜBER DIE GESAMTE SEITE */


/* ============================================
   Dark Mode für Auth-Seiten
   ============================================ */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    }
    
    .auth-card {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
    
    .auth-title {
        color: var(--text-primary);
    }
    
    .auth-subtitle {
        color: var(--text-secondary);
    }
    
    .form-label {
        color: var(--text-primary);
    }
    
    .form-control {
        background: var(--bg-tertiary);
        border-color: var(--border-color);
        color: var(--text-primary);
    }
    
    .form-control:focus {
        background: var(--bg-tertiary);
        border-color: var(--primary-light);
    }
    
    .form-control::placeholder {
        color: var(--text-muted);
    }
    
    .form-help {
        color: var(--text-muted);
    }
    
    .form-error {
        color: var(--error);
    }
    
    .auth-link {
        color: var(--primary-light);
    }
    
    .auth-link:hover {
        color: var(--primary);
    }
    
    .form-checkbox-label {
        color: var(--text-secondary);
    }
    
    .home-info {
        background: rgba(0, 0, 0, 0.4);
    }
    
    .home-title {
        color: var(--text-primary);
    }
    
    .home-subtitle {
        color: var(--text-secondary);
    }
    
    .home-features li {
        color: var(--text-secondary);
    }
    
    .top-nav {
        background: rgba(0, 0, 0, 0.3);
        border-bottom-color: var(--border-color);
    }
    
    .nav-logo {
        color: white;
    }
    
    .nav-btn {
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .nav-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a1f44 0%, #283d83 40%, #5a4ff3 100%);
    background-attachment: fixed;
    background-size: cover;
}


.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
    color: #ffffff;
    font-size: 0.9375rem;
}

.label {
	color: white;
}

/* Auth-Container Layout */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--spacing-lg);*/
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

/* Auth Card */
.auth-card {
	margin-top: 110px;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}

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

/* Logo / Branding */
.auth-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-logo-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    font-weight: bold;
    box-shadow: var(--shadow-lg);
}

.auth-logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #abb7d1;
    margin-bottom: var(--spacing-xs);
}

.auth-logo-subtitle {
    color: #ffffff;
    font-size: 0.875rem;
}

/* Auth Header */
.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
}

.auth-subtitle {
    color: #ffffff;
    font-size: 0.95rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: var(--spacing-lg);
}

.auth-form .form-group:last-of-type {
    margin-bottom: var(--spacing-xl);
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
    transition: var(--transition);
}

.password-toggle:hover {
    color: var(--gray-700);
}

/* Remember Me & Forgot Password */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    font-size: 0.875rem;
}

.auth-options .form-check {
    margin-bottom: 0;
}

.auth-link {
    color: #cdd9f4;
    font-weight: 500;
    transition: var(--transition);
}

.auth-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Submit Button */
.auth-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: var(--spacing-xl) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--gray-200);
}

.auth-divider span {
    padding: 0 var(--spacing-md);
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-100);
}

.auth-footer p {
    color: #ffffff;
    margin-bottom: 0;
}

.auth-footer a {
    color: #cdd9f4;
    font-weight: 600;
}

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

/* External Auth Footer (außerhalb Card) */
.auth-external-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    color: white;
    font-size: 0.875rem;
}

.auth-external-footer a {
    color: white;
    text-decoration: underline;
    opacity: 0.9;
}

.auth-external-footer a:hover {
    opacity: 1;
}

/* Success State */
.auth-success {
    text-align: center;
    padding: var(--spacing-2xl);
}

.auth-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-lg);
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.auth-success-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--gray-900);
}

.auth-success-message {
    color: var(--gray-600);
    margin-bottom: var(--spacing-xl);
}

/* Loading State */
.auth-loading {
    text-align: center;
    padding: var(--spacing-xl);
}

.auth-loading .spinner {
    margin: 0 auto var(--spacing-md);
}

/* Input Icons */
.form-group-icon {
    position: relative;
}

.form-group-icon .form-control {
    padding-left: 3rem;
}

.form-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.25rem;
    pointer-events: none;
}

/* Validation States */
.form-control.is-valid {
    border-color: var(--success);
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.form-control.is-invalid {
    border-color: var(--error);
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23ef4444'%3E%3Cpath fill-rule='evenodd' d='M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}


/* --- Layout --- */
.home-layout {
    display: flex;
    min-height: 100vh;
}

/* Left side (Homepage) */
.home-info {
    flex: 1;
    color: white;
    padding: 4rem;
    display: flex;
    align-items: center;
    background: transparent; /* WICHTIG */
	margin-top: 60px;
}

.home-auth {
    flex: 1;
	padding: 10px;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    background: transparent; /* WICHTIG */
}


.home-content {
    max-width: 500px;
}

.home-title {
	color: white;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.home-subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

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

.home-features li {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.home-features li i {
    margin-right: 0.7rem;
    font-size: 1.3rem;
}

/* Right side: Login container wie gehabt */


/* --- Top Navigation --- */
.top-nav {
    width: 100%;
    padding: 1.2rem 2rem;
    background: #ffffff;
    backdrop-filter: blur(6px);
    position: absolute;
    top: 0;
    left: 0;
}

.top-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0;
}

.nav-btn {
    margin-left: 1rem;
	margin-right: 10px; 
    padding: 0.55rem 1rem;
    border-radius: 6px;
    border: 1px solid #0052cc;
    color: #0052cc;
    font-weight: 500;
    text-decoration: none;
	display: ruby-text;
}

.nav-btn-primary {
    background: #0052cc;
    color: white;
}

/* --- Mobile --- */
@media (max-width: 900px) {
    .home-layout {
        flex-direction: column;
    }

    .home-info {
        padding: 2rem;
        text-align: center;
    }

    .home-features li {
        justify-content: center;
    }

    .top-nav {
        position: fixed;
    }
}





/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: var(--spacing-xl);
    } 
    
    .auth-logo-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-options {
        flex-direction: column;
        gap: var(--spacing-md);
        align-items: flex-start;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    .auth-card {
        color: var(--gray-100);
    }
    
    .auth-title {
        color: white;
    }
    
    .form-control {
        background: var(--gray-700);
        border-color: var(--gray-600);
        color: white;
    }
    
    .form-control:focus {
        border-color: var(--primary-light);
    }
}