{% extends 'chat/base.html' %}
{% block title %}Create Channel — DiscordClone{% endblock %}
{% block body %}
<div class="auth-wrapper">
  <div class="auth-card">
    <h1 style="font-size:1.3rem;">Create Channel</h1>
    <p class="sub">Start a new conversation space.</p>
    <form method="post" action="{% url 'create_channel' %}">
      {% csrf_token %}
      <div class="mb-3">
        <label class="form-label" style="font-size:.8rem;font-weight:600;color:#b5bac1;text-transform:uppercase;">Channel Name</label>
        <input type="text" name="name" class="form-control" id="id_channel_name" required placeholder="general">
      </div>
      <div class="mb-4">
        <label class="form-label" style="font-size:.8rem;font-weight:600;color:#b5bac1;text-transform:uppercase;">Description</label>
        <input type="text" name="description" class="form-control" id="id_channel_desc" placeholder="Optional">
      </div>
      <div class="d-flex gap-2">
        <button type="submit" class="btn btn-primary flex-fill" id="btn_create_ch_submit">Create</button>
        <a href="{% url 'home' %}" class="btn btn-secondary flex-fill" id="btn_create_ch_back">Cancel</a>
      </div>
    </form>
  </div>
</div>
{% endblock %}
