<div class="page-header">
    <div class="page-header-left">
        <div class="back-link">
            <a href="/teams"><i class="fas fa-arrow-left"></i> Back to Teams</a>
        </div>
        <h1 class="page-title">Create Team</h1>
        <p class="page-subtitle">Create a work team to manage server access</p>
    </div>
</div>

<div class="card">
    <div class="card-body">
        <form method="POST" action="/teams/create" class="form" style="max-width:600px">
            <input type="hidden" name="_csrf_token" value="<?= $this->csrfToken() ?>">

            <div class="form-group">
                <label for="name">Team Name *</label>
                <input type="text" id="name" name="name" class="form-input"
                       placeholder="e.g., DevOps, Developers, Support" required>
            </div>

            <div class="form-group">
                <label for="description">Description</label>
                <textarea id="description" name="description" class="form-input" rows="3"
                          placeholder="Optional description of the team"></textarea>
            </div>

            <div class="form-group">
                <button type="submit" class="btn btn-primary">
                    <i class="fas fa-save"></i> Create Team
                </button>
                <a href="/teams" class="btn btn-secondary">Cancel</a>
            </div>
        </form>
    </div>
</div>
