/* Modern UI styling for Auth App with automatic light/dark theme */ :root { /* Base colors (light theme) */ --primary: #4361ee; --primary-light: #4cc9f0; --primary-dark: #3a0ca3; --success: #4ade80; --danger: #f87171; --text: #1f2937; --text-light: #6b7280; --bg-light: #f9fafb; --bg-dark: #f3f4f6; --card-bg: #ffffff; --card-border: #e5e7eb; --shadow: rgba(0, 0, 0, 0.1); --radius: 8px; --transition: all 0.3s ease; } /* Dark theme colors - will be applied when system prefers dark mode */ @media (prefers-color-scheme: dark) { :root { --primary: #5d7aff; --primary-light: #70d6ff; --primary-dark: #9b5de5; --success: #56f2a3; --danger: #ff6b6b; --text: #e5e7eb; --text-light: #9ca3af; --bg-light: #111827; --bg-dark: #0f172a; --card-bg: #1f2937; --card-border: #374151; --shadow: rgba(0, 0, 0, 0.3); } } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, sans-serif; line-height: 1.6; color: var(--text); background: linear-gradient(135deg, var(--bg-light), var(--bg-dark)); min-height: 100vh; padding: 2rem; transition: background-color 0.5s ease, color 0.5s ease; } .container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; } .app-header { text-align: center; margin-bottom: 2rem; animation: fadeIn 0.8s ease; } .app-title { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 0.5rem; font-weight: 600; } .app-subtitle { color: var(--text-light); font-size: 1.1rem; font-weight: 400; } .auth-section { background-color: var(--card-bg); border-radius: var(--radius); box-shadow: 0 4px 16px var(--shadow); padding: 2rem; margin: 0 auto 2rem; max-width: 480px; transition: var(--transition); animation: slideUp 0.5s ease; } .auth-section:hover { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); } .section-title { font-size: 1.8rem; color: var(--primary); margin-bottom: 1.5rem; font-weight: 600; position: relative; padding-bottom: 0.75rem; } .section-title::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: 60px; background: linear-gradient(to right, var(--primary), var(--primary-light)); border-radius: 1.5px; } .form-group { margin-bottom: 1.5rem; } label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: var(--text); } input[type="email"], input[type="password"] { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--card-border); border-radius: var(--radius); font-size: 1rem; transition: var(--transition); outline: none; } input[type="email"]:focus, input[type="password"]:focus { border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15); } .btn { display: inline-block; padding: 0.75rem 1.5rem; font-size: 1rem; font-weight: 500; text-align: center; border: none; border-radius: var(--radius); cursor: pointer; transition: var(--transition); background-color: var(--primary); color: white; } .btn:hover { background-color: var(--primary-dark); transform: translateY(-2px); } .btn:active { transform: translateY(0); } .btn-full { width: 100%; } .btn-success { background-color: var(--success); } .btn-success:hover { background-color: #3eb76a; } .btn-danger { background-color: var(--danger); } .btn-danger:hover { background-color: #e05252; } .status-message { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 500; display: none; background-color: rgba(248, 113, 113, 0.1); color: var(--danger); border-left: 4px solid var(--danger); } .status-message.success { background-color: rgba(74, 222, 128, 0.1); color: #16a34a; border-color: var(--success); } .switch-auth { margin-top: 1.5rem; text-align: center; color: var(--text-light); } .switch-auth a { color: var(--primary); text-decoration: none; font-weight: 500; transition: var(--transition); } .switch-auth a:hover { color: var(--primary-dark); text-decoration: underline; } #welcome-section { background-color: var(--card-bg); border-radius: var(--radius); box-shadow: 0 4px 16px var(--shadow); padding: 2rem; margin: 0 auto; max-width: 800px; animation: fadeIn 0.8s ease; } .welcome-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; } #welcome-message { font-size: 1.3rem; font-weight: 500; color: var(--primary-dark); margin-bottom: 1rem; } .divider { margin: 2rem 0; height: 1px; background-color: var(--card-border); } .notifications-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; } #notifications { background-color: var(--bg-light); border-radius: var(--radius); padding: 1rem; min-height: 100px; max-height: 350px; overflow-y: auto; border: 1px solid var(--card-border); } #notifications p { padding: 0.75rem; margin-bottom: 0.75rem; border-radius: var(--radius); background-color: var(--card-bg); border-left: 3px solid var(--primary-light); box-shadow: 0 2px 4px var(--shadow); animation: fadeIn 0.3s ease; } #notifications p:last-child { margin-bottom: 0; } #notifications p em { color: var(--text-light); font-style: italic; } /* Animation keyframes */ @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } /* Theme transition */ * { transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; } /* Responsive styles */ @media (max-width: 768px) { body { padding: 1rem; } .app-title { font-size: 2rem; } .auth-section { padding: 1.5rem; margin-bottom: 1.5rem; } } @media (max-width: 480px) { .app-title { font-size: 1.8rem; } .section-title { font-size: 1.5rem; } .auth-section { padding: 1.25rem; } .btn { padding: 0.7rem 1.25rem; } }