{{define "title"}} - Initialize{{end}}
{{define "container-class"}}auth-container{{end}}
{{define "content"}}
<div class="auth-header">
    <div class="brand">Metacrypt</div>
    <div class="tagline">Cryptographic Services</div>
</div>
<div class="card">
    <div class="card-title">Initialize</div>
    <p>Set the seal password for this instance. This password will be required to unseal the service after each restart.</p>
    {{if .Error}}<div class="error">{{.Error}}</div>{{end}}
    <form method="POST" action="/init">
        {{csrfField}}
        <div class="form-group">
            <label for="password">Seal Password</label>
            <input type="password" id="password" name="password" required autofocus autocomplete="new-password">
        </div>
        <div class="form-group">
            <label for="confirm">Confirm Password</label>
            <input type="password" id="confirm" name="confirm" required autocomplete="new-password">
        </div>
        <div class="form-actions">
            <button type="submit">Initialize</button>
        </div>
    </form>
</div>
{{end}}
