/* 入館証まわりの入力画面で共通に使う。
   社員ログイン・PIN 設定・来訪者の臨時登録・照会。 */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(180deg, #eef5ff, #f8fafc);
    font-family:"Hiragino Kaku Gothic ProN","Yu Gothic","Meiryo",sans-serif;
    padding:20px;
}

.card{
    width:100%;
    max-width:430px;
    background:white;
    border-radius:25px;
    padding:35px;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

h1{
    text-align:center;
    color:#333;
    margin-bottom:8px;
    font-size:26px;
}

.subtitle{
    text-align:center;
    color:#777;
    font-size:15px;
    margin-bottom:28px;
}

.error{
    background:#fdecea;
    border:1px solid #f5c2c0;
    color:#b3261e;
    border-radius:12px;
    padding:12px 14px;
    font-size:14px;
    margin-bottom:20px;
    line-height:1.6;
}

.notice{
    background:#e8f4fd;
    border:1px solid #b6dcf7;
    color:#0b4f7a;
    border-radius:12px;
    padding:14px 16px;
    font-size:14px;
    margin-bottom:20px;
    line-height:1.7;
}

.info-row{
    margin-bottom:20px;
}

.info-row label{
    display:block;
    margin-bottom:8px;
    font-size:15px;
    font-weight:bold;
    color:#555;
}

.info-row label .optional{
    font-weight:normal;
    color:#888;
    font-size:13px;
}

input,
select,
textarea{
    width:100%;
    padding:14px 16px;
    border:1px solid #d9d9d9;
    border-radius:15px;
    font-size:16px;
    outline:none;
    transition:.2s;
    background:white;
    font-family:inherit;
}

input:focus,
select:focus,
textarea:focus{
    border-color:#1976d2;
    box-shadow:0 0 0 3px rgba(25,118,210,.15);
}

textarea{
    resize:vertical;
    min-height:100px;
}

input.pin{
    letter-spacing:.6em;
    text-align:center;
    font-size:22px;
}

.hint{
    margin-top:6px;
    font-size:13px;
    color:#888;
    line-height:1.6;
}

button{
    width:100%;
    height:55px;
    margin-top:10px;
    border:none;
    border-radius:15px;
    background:#1976d2;
    color:white;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    transition:.2s;
    font-family:inherit;
}

button:hover{
    background:#1565c0;
}

button:active{
    transform:scale(.98);
}

button.secondary{
    background:#eceff1;
    color:#455a64;
}

button.secondary:hover{
    background:#dfe4e7;
}

.links{
    margin-top:22px;
    text-align:center;
    line-height:2;
}

.links a{
    color:#1976d2;
    text-decoration:none;
    font-size:15px;
}

.links a:hover{
    text-decoration:underline;
}

.links .back{
    color:#666;
}
