/*! Reset CSS */

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
    display: block;
}

body {
    line-height: 1;
}

ol,
ul {
    list-style: none;
}

blockquote,
q {
    quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
    content: "";
    content: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ===== ベース設定 ===== */

html,
body {
    height: 100%;
    margin: 0;
    font-family: "Poppins", "Noto Sans JP", sans-serif;
    background: linear-gradient(115deg, #ffd9c5 0%, #ffb899 50%, #ffc5b2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== 背景ライト効果 ===== */

body::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.4),
        transparent 70%
    );
    filter: blur(60px);
    z-index: 0;
}

/* ===== カード全体 ===== */

.card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(18px);
            backdrop-filter: blur(18px);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(255, 107, 71, 0.25);
    width: 100%;
    max-width: 540px;
    /* ← 広げた */
    padding: 50px 48px;
    box-sizing: border-box;
    text-align: center;
    animation: fadeUp 0.8s ease-out;
    transition: all 0.4s ease;
}

/* ===== カードのアニメーション ===== */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== タイトル ===== */

.title {
    font-size: 26px;
    font-weight: 700;
    color: #ff6b47;
    letter-spacing: 0.6px;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(255, 107, 71, 0.25);
}

/* ===== ラベル & フィールド ===== */

.field {
    position: relative;
    margin-bottom: 26px;
    text-align: left;
}

.label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    padding: 14px 46px 14px 14px;
    font-size: 16px;
    border-radius: 12px;
    border: 1.6px solid #ddd;
    background-color: #fff;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.input:focus {
    border-color: #ff6b47;
    box-shadow: 0 0 14px rgba(255, 107, 71, 0.3);
    outline: none;
}

/* ===== パスワード表示アイコン ===== */

.pw-toggle {
    position: absolute;
    right: 14px;
    top: 52%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    transition: color 0.2s;
}

.pw-toggle:hover {
    color: #ff6b47;
}

/* ===== ボタン ===== */

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #ff8359, #ff6b47);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    padding: 15px 0;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(255, 107, 71, 0.3);
    transition: all 0.3s ease;
    margin-top: 12px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(255, 107, 71, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(255, 107, 71, 0.25);
}

/* ===== リンク ===== */

.link-alt {
    margin-top: 26px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.8;
}

.link-alt a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-alt a:hover {
    color: #ff6b47;
}

/* ===== 非表示 ===== */

.hidden {
    display: none;
}

/* ===== スマホ対応 ===== */

@media (max-width: 600px) {
    .card {
        max-width: 100%;
        padding: 36px 28px 44px;
    }
    .title {
        font-size: 24px;
    }
}

.alert {
    font-size: 14px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.alert.success {
    background-color: #e7f7ec;
    color: #2c7a4b;
    border: 1px solid #8cd3a0;
}

.alert.error {
    background-color: #fdecea;
    color: #b91c1c;
    border: 1px solid #f5a3a3;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-4px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



