From 633c8456153ba8b66389b65e079be053b9fce748 Mon Sep 17 00:00:00 2001 From: Fabian Schieder Date: Thu, 22 Jan 2026 22:50:03 +0100 Subject: [PATCH] improvements --- assets/css/login.css | 138 ++++++++++++++++++++++++++++++++----------- login.php | 1 + 2 files changed, 104 insertions(+), 35 deletions(-) diff --git a/assets/css/login.css b/assets/css/login.css index 96d1aea..8a58365 100644 --- a/assets/css/login.css +++ b/assets/css/login.css @@ -1,28 +1,22 @@ /* assets/css/login.css - Login-Layout im Stil von style.css (dunkler Hintergrund + helle Cards) + Geizhals-inspiriertes, cleanes Login-Layout */ :root{ - /* nutzt eure globalen Farben aus style.css, mit Fallbacks */ - --gh-bg: var(--bg-main, #151923); - --gh-card: var(--bg-card, #ffffff); - --gh-header: var(--bg-header, #1f2937); + /* Dunkelblauer Background, helle Cards, blaue Akzente */ + --gh-bg: #0f172a; + --gh-card: #ffffff; + --gh-text: #0f172a; + --gh-muted: #475569; + --gh-border: #e5e7eb; - --gh-text: var(--text-main, #151c2e); - --gh-muted: var(--text-muted, #6b7280); - --gh-border: var(--border-color, #e5e7eb); - - --gh-primary: var(--color-primary, #2563eb); - --gh-primary-hover: var(--color-primary-hover, #1d4ed8); + --gh-primary: #2563eb; + --gh-primary-2: #1d4ed8; + --gh-link: #2563eb; --gh-danger: #d92d20; - - --gh-radius: var(--radius-lg, 16px); - --gh-shadow: var(--shadow-md, 0 6px 20px rgba(0,0,0,0.08)); - - --gh-transition-fast: var(--transition-fast, 150ms ease); - --gh-transition-normal: var(--transition-normal, 250ms ease); - + --gh-shadow: 0 14px 34px rgba(2, 6, 23, 0.35); + --gh-radius: 16px; --gh-focus: 0 0 0 4px rgba(37, 99, 235, 0.28); } @@ -31,7 +25,15 @@ min-height: calc(100svh - 56px); padding: 34px 18px 60px; background: var(--gh-bg); - color: var(--gh-text); +} + +.auth__grid{ + max-width: 1080px; + margin: 0 auto; + display: grid; + grid-template-columns: 1.06fr 0.94fr; + gap: 22px; + align-items: start; } .auth__card, @@ -42,6 +44,26 @@ box-shadow: var(--gh-shadow); } +.auth__card{ + padding: 22px; +} + +.auth__header{ + display: grid; + grid-template-columns: auto 1fr; + column-gap: 14px; + row-gap: 2px; + align-items: center; + margin-bottom: 12px; +} + +.auth__logo{ + display: block; + width: 140px; + height: auto; + grid-row: span 2; +} + .auth__title{ margin: 0; font-size: 1.55rem; @@ -56,10 +78,27 @@ line-height: 1.4; } +.auth__alert{ + margin: 12px 0 14px; + color: #ffffff; + background: var(--gh-danger); + border-radius: 12px; + padding: 10px 12px; + box-shadow: 0 8px 18px rgba(217, 45, 32, 0.18); +} + +.auth__form{ + margin-top: 6px; +} + +.auth__field{ + margin-top: 12px; +} + .auth__field label{ display: block; margin: 0 0 6px; - font-size: 0.85rem; + font-size: 0.95rem; color: var(--gh-muted); } @@ -67,13 +106,13 @@ .auth__field input[type="password"]{ width: 100%; box-sizing: border-box; - padding: 0.75rem 0.8rem; + padding: 12px 12px; border: 1px solid var(--gh-border); - border-radius: var(--radius-sm, 6px); + border-radius: 12px; background: #ffffff; color: var(--gh-text); outline: none; - transition: border-color var(--gh-transition-fast), box-shadow var(--gh-transition-fast); + transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease; } .auth__field input[type="text"]:focus, @@ -82,20 +121,25 @@ box-shadow: var(--gh-focus); } +.auth__actions{ + margin-top: 14px; +} + .auth__submit{ width: 100%; - padding: 0.75rem 0.8rem; + padding: 12px 14px; border: 0; - border-radius: var(--radius-sm, 6px); - background: var(--gh-primary); + border-radius: 12px; + background: linear-gradient(180deg, var(--gh-primary), var(--gh-primary-2)); color: #ffffff; - font-weight: 650; + font-weight: 750; + letter-spacing: 0.2px; cursor: pointer; - transition: background var(--gh-transition-fast), transform var(--gh-transition-fast); + transition: transform 120ms ease, filter 120ms ease; } .auth__submit:hover{ - background: var(--gh-primary-hover); + filter: brightness(1.02); transform: translateY(-1px); } @@ -103,15 +147,21 @@ transform: translateY(0px); } +.auth__links{ + margin-top: 14px; + padding-top: 12px; + border-top: 1px dashed var(--gh-border); +} + .auth__muted{ margin: 8px 0 0; color: var(--gh-muted); } .auth__muted a{ - color: var(--gh-primary); + color: var(--gh-link); text-decoration: none; - font-weight: 600; + font-weight: 700; } .auth__muted a:hover{ @@ -120,14 +170,32 @@ .auth__sideCard{ padding: 18px; + background: var(--gh-card); +} + +.auth__sideCard h3{ + margin: 0 0 10px; + font-size: 1.05rem; + color: var(--gh-text); +} + +.auth__sideCard ul{ + margin: 0; + padding-left: 18px; + color: var(--gh-text); +} + +.auth__sideCard li{ + margin: 8px 0; + color: var(--gh-text); } .auth__tip{ margin-top: 14px; padding: 12px 12px; - border-radius: var(--radius-md, 10px); - background: #f3f4f6; - border: 1px solid var(--gh-border); + border-radius: 12px; + background: rgba(37,99,235,0.06); + border: 1px solid rgba(37,99,235,0.16); color: var(--gh-text); } @@ -158,4 +226,4 @@ width: 140px; grid-row: auto; } -} +} \ No newline at end of file diff --git a/login.php b/login.php index 8b5eff2..7e23321 100644 --- a/login.php +++ b/login.php @@ -67,6 +67,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {

Login

+

Melde dich an, um deine Wunschliste zu verwalten und Deals schneller zu speichern.