@charset "UTF-8";

/* 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.logo-img {
    width: 100%;
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(3%) hue-rotate(172deg) brightness(103%) contrast(100%);
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-container {
    background: white;
    border-radius: 12px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); */
    overflow: hidden;
}

.login-header {
    padding: 40px 30px 35px;
    text-align: center;
    color: white;
}

.logo-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: white;
}

.login-header p {
    font-size: 14px;
    opacity: 0.9;
    font-weight: 400;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.reset-description {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.login-body {
    background: #f7f7f7;
    padding: 10px 30px 40px;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.form-control {
    width: 100%;
    padding: 13px 15px 13px 45px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    outline: none;
    background-color: white;
}

.form-control.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.error-message {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.checkbox-wrapper label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin: 0;
    font-weight: 400;
}

.btn-login {
    width: 100%;
    padding: 14px;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.btn-login:active {
    transform: translateY(0);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-password a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 1;
}

/* レスポンシブ */
@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .login-container {
        border-radius: 10px;
    }

    .login-header {
        padding: 30px 20px 25px;
    }

    .logo-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 15px;
    }

    .login-header h1 {
        font-size: 20px;
    }

    .login-header p {
        font-size: 13px;
    }

    .login-body {
        padding: 25px 20px 30px;
    }
}

