 /* ===== Auth (login) screen ===== */

 /* box-sizing:border-box は application.css の全体リセットに統合済み */

html, body {
  margin: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

.auth-page{
    min-height: 100vh;               /* 画面いっぱい */
    display: flex;
    justify-content: center;         /* 横中央 */
    align-items: center;             /* 縦中央 */
    background: #f57272;           /* 背景 */
    padding: 20px 0;
    align-self: start;
}

.auth-card {
    width: min(600px, 100%);           /* ✅ PCで小さすぎを解消 */
    max-width: 600px;                   /* カードの横幅 */
    background: #f7feff;              /* カード内の淡い色 */
    border-radius: 24px;                /* 角を丸く */
    padding: 32px 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);        /* ふわっと浮かせる影 */
    text-align: center;
}

/*title*/
.auth-title {
    margin: 0 0 8px;
    font-size: 50px;
    font-weight: 700;
}

/*subtitle*/
.auth-subtitle {
    margin: 0 0 20px;
    font-size: 25ppx;
    color: #666;
}

.auth-subtitle.is-error {
  font-size: 20px;
  color: #d93025;
}

.auth-subtitle.is-hidden {
  display: none;
}

.auth-invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 20px;
  padding: 2px 22px;
  border-radius: 999px;
  background: #e6c200;   /* マスタードイエロー */
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-invite-badge__en {
  font-size: 14px;
}

.auth-invite-badge__ja {
  font-size: 14px;
  color: #000;
}

.auth-invite-badge__divider {
  color: #fff;
}

.auth-field {
    font-size: 30px;
    margin-bottom: 16px;
    text-align: left;
}

/*メアド入力値*/
.auth-field label {
    display: block;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #0e0e0e;
}

.auth-input {
    width: 100%;
    border-radius: 12px;
    border: none;
    padding: 12px 14px;
    font-size: 20px;
    box-shadow: 0 0 0 1px #dde6ec;
    background: #ffffff;
}

.auth-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #ff4a1d;
}


/*パスワード*/
.auth-extra-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 25ppx;
}

.auth-link {
    color: #b82b26;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-button {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 12px 0;
    background: #e86c6c;   /* 赤系 */
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
}

.auth-button:hover {
    opacity: 0.95;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #999;
    margin: 16px 0;
}

.auth-divider span:nth-child(1),
.auth-divider span:nth-child(3) {
    flex: 1;
    height: 1px;
    background: #dde6ec;
}

.auth-social-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
}

.auth-social-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 1px #dde6ec;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.auth-bottom-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* ===== スマホ対応 ===== */
@media (max-width: 600px) {

    .auth-page {
        min-height: 100svh;
        align-items: center;
        padding: 20px 0;
    } 


    .auth-card {
        width: 92%;
        min-height: auto;
        padding: 48px 16px;   /* 余白を縮める */
        border-radius: 20px;
        margin: 0;
    }

    .auth-title {
        font-size: 28px;
    }

    .auth-subtitle {
        font-size: 20px;
    }

    /* エラー時 */
    .auth-subtitle.is-error {
        font-size: 15px;
        color: #d93025;    /* 赤にする（任意） */
    }

    .auth-invite-badge {
        padding: 2px 16px;
    }

    .auth-invite-badge__en,
    .auth-invite-badge__ja {
        font-size: 12px;
    }

    .auth-field {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .auth-field label {
        font-size: 14px;
    }

    .auth-input {
        font-size: 16px;
        padding: 10px 12px;
    }

    .auth-extra-row {
        font-size: 14px;
    }

    .auth-button {
        font-size: 16px;
        padding: 12px 0;
    }

    .auth-divider {
        font-size: 10px;
    }

    .auth-social-circle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .auth-bottom-text {
        font-size: 11px;
    }
    }


    /* ===== Auth (New login) screen ===== */