MIF_E31232094/resources/views/layouts/auth.blade.php

234 lines
9.6 KiB
PHP

{{-- resources/views/layouts/auth.blade.php --}}
<!DOCTYPE html>
<html lang="id">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>@yield('title', 'PlantCare') - Sistem Diagnosis Penyakit Tanaman</title>
<link href="https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=DM+Sans:wght@400;500;600&display=swap" rel="stylesheet"/>
<style>
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
--green-dark: #1e5c3a;
--green-mid: #2d7a50;
--green-light: #3a9b68;
--green-pale: #e8f5ee;
--cream: #f0ede6;
--text-dark: #1a2e22;
--text-muted: #5a7a66;
--border: #c8ddd0;
--input-bg: #eef6f1;
--white: #ffffff;
--radius: 14px;
--shadow: 0 8px 32px rgba(30,92,58,0.12);
}
body {
min-height: 100vh;
background: var(--cream);
display: flex; align-items: center; justify-content: center;
font-family: 'DM Sans', sans-serif;
padding: 20px;
background-image:
radial-gradient(ellipse at 20% 80%, rgba(61,155,104,0.12) 0%, transparent 55%),
radial-gradient(ellipse at 80% 20%, rgba(30,92,58,0.08) 0%, transparent 55%);
}
.card {
width: 100%; max-width: 480px;
background: var(--white);
border-radius: 24px;
overflow: hidden;
box-shadow: var(--shadow);
animation: slideUp 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes slideUp {
from { opacity: 0; transform: translateY(28px); }
to { opacity: 1; transform: translateY(0); }
}
/* Header */
.auth-header {
background: linear-gradient(145deg, var(--green-dark) 0%, var(--green-mid) 100%);
padding: 36px 32px 40px;
position: relative; overflow: hidden; text-align: center;
}
.auth-header::before {
content: ''; position: absolute;
width: 200px; height: 200px;
background: rgba(255,255,255,0.06);
border-radius: 50%; top: -60px; left: -40px;
}
.auth-header::after {
content: ''; position: absolute;
width: 150px; height: 150px;
background: rgba(255,255,255,0.05);
border-radius: 50%; bottom: -50px; right: -30px;
}
.logo-icon {
width: 60px; height: 60px;
background: rgba(255,255,255,0.18);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
margin: 0 auto 14px;
font-size: 26px;
position: relative; z-index: 1;
}
.auth-header h1 {
font-family: 'Playfair Display', serif;
font-size: 26px; color: #fff;
position: relative; z-index: 1;
}
.auth-header p {
font-size: 13.5px; color: rgba(255,255,255,0.72);
margin-top: 4px;
position: relative; z-index: 1;
}
/* Body */
.auth-body { padding: 36px 32px 40px; }
/* Alert */
.alert {
padding: 12px 16px; border-radius: var(--radius);
font-size: 13.5px; margin-bottom: 20px;
}
.alert-success { background: var(--green-pale); color: var(--green-dark); border: 1px solid var(--border); }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
/* Form */
.form-group { margin-bottom: 18px; }
label {
display: block; font-size: 12px; font-weight: 600;
letter-spacing: 0.8px; text-transform: uppercase;
color: var(--text-muted); margin-bottom: 8px;
}
input[type="email"],
input[type="password"],
input[type="text"] {
width: 100%; padding: 14px 16px;
background: var(--input-bg);
border: 1.5px solid transparent;
border-radius: var(--radius);
font-size: 15px; font-family: 'DM Sans', sans-serif;
color: var(--text-dark); outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus {
border-color: var(--green-mid);
box-shadow: 0 0 0 3px rgba(45,122,80,0.12);
}
input.is-invalid { border-color: #e74c3c; }
input::placeholder { color: #a0b8a8; }
.invalid-feedback {
font-size: 12.5px; color: #e74c3c;
margin-top: 5px; display: block;
}
/* Button */
.btn {
width: 100%; padding: 15px;
border: none; border-radius: 50px;
font-size: 16px; font-weight: 600;
font-family: 'DM Sans', sans-serif;
cursor: pointer;
transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
color: #fff;
box-shadow: 0 4px 16px rgba(30,92,58,0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(30,92,58,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
background: transparent; color: var(--text-muted);
margin-top: 10px; font-size: 14px;
}
.btn-ghost:hover { color: var(--green-dark); }
/* Page title */
.page-title {
font-family: 'Playfair Display', serif;
font-size: 22px; color: var(--text-dark); margin-bottom: 6px;
}
.page-sub {
font-size: 14px; color: var(--text-muted);
margin-bottom: 28px; line-height: 1.5;
}
/* Steps */
.steps { display: flex; align-items: center; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.step.active { color: var(--green-dark); }
.step.done { color: var(--green-light); }
.step-dot {
width: 24px; height: 24px; border-radius: 50%;
background: var(--border);
display: flex; align-items: center; justify-content: center;
font-size: 11px; font-weight: 700; color: var(--text-muted);
}
.step.active .step-dot { background: var(--green-dark); color: #fff; }
.step.done .step-dot { background: var(--green-light); color: #fff; }
.step-line { flex: 1; height: 2px; background: var(--border); margin: 0 6px; }
.step-line.done { background: var(--green-light); }
/* Input-wrap */
.input-wrap { position: relative; }
.toggle-pw {
position: absolute; right: 14px; top: 50%;
transform: translateY(-50%);
background: none; border: none; cursor: pointer;
color: var(--text-muted); font-size: 16px; padding: 0;
}
/* OTP */
.otp-group { display: flex; gap: 10px; }
.otp-group input {
text-align: center; font-size: 20px;
font-weight: 700; padding: 14px 0; letter-spacing: 2px;
}
/* Info box */
.info-box {
background: var(--green-pale);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 14px 16px; font-size: 13.5px;
color: var(--green-dark); margin-bottom: 22px;
display: flex; gap: 10px; align-items: flex-start; line-height: 1.5;
}
/* Resend */
.resend { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: 16px; }
.resend button {
background: none; border: none; cursor: pointer;
color: var(--green-dark); font-weight: 600;
font-family: 'DM Sans', sans-serif; font-size: 13.5px;
padding: 0; text-decoration: underline;
}
.resend button:disabled { color: var(--text-muted); cursor: not-allowed; text-decoration: none; }
/* Strength */
.strength-bar { height: 4px; border-radius: 4px; background: var(--border); margin-top: 8px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 4px; width: 0%; transition: width 0.35s, background 0.35s; }
.strength-label { font-size: 12px; margin-top: 4px; color: var(--text-muted); min-height: 16px; }
/* Back link */
.back-link { display: block; text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-muted); }
.back-link a { color: var(--green-dark); font-weight: 600; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }
/* Success */
.success-icon {
width: 68px; height: 68px; background: var(--green-pale);
border-radius: 50%; display: flex; align-items: center;
justify-content: center; font-size: 30px;
margin: 0 auto 20px;
animation: pop 0.5s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes pop {
from { transform: scale(0.4); opacity: 0; }
to { transform: scale(1); opacity: 1; }
}
</style>
@stack('styles')
</head>
<body>
<div class="card">
<div class="auth-header">
<div class="logo-icon">🌿</div>
<h1>PlantCare</h1>
<p>Sistem Diagnosis Penyakit Tanaman</p>
</div>
<div class="auth-body">
@yield('content')
</div>
</div>
@stack('scripts')
</body>
</html>