<link href="/css/front/login.css" media="screen" rel="stylesheet" type="text/css" />
<div class="login-page">
  <div class="login-content">
    <div class="login-container">
      <h2 class="login-title">DaemonIDC 로그인</h2>
      <?= form_open(current_url(), $viewDatas['forms']['attributes'], $viewDatas['forms']['hiddens']) ?>
      <div class="input-group">
        <label for="userId">아이디</label>
        <input type="text" name="id" value="<?= old('id') ?>" required>
        <div><?= validation_show_error('id'); ?></div>
      </div>
      <div class="input-group">
        <label for="userPassword">비밀번호</label>
        <input type="password" name="passwd" required>
        <div><?= validation_show_error('passwd'); ?></div>
      </div>
      <button type="submit" class="btn-login">로그인</button>
      <div class="login-options"><?= $viewDatas['sns_button'] ?? "" ?></div>
      <?= form_close(); ?>
      <?php if (session('message')): ?>
        <div class="alert alert-info text-start"><?= session('message') ?></div><?php endif; ?>
    </div>
  </div>
</div>