/* GiversMall ログイン関連ページ 共通スタイル */

/* ===== 基本レイアウト ===== */
body {
    background: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Hind Siliguri', sans-serif;
    padding: 20px 0;
}

/* ===== コンテナ ===== */
.register-container,
.login-container,
.complete-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    margin: 20px auto;
}

/* ===== ヘッダー ===== */
.register-header,
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-logo,
.login-logo {
    max-width: 200px;
    margin-bottom: 20px;
}

.register-title,
.login-title,
.complete-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.register-subtitle,
.login-subtitle,
.complete-message {
    font-size: 14px;
    color: #666;
}

/* ===== Powered by ===== */
.powered-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
}

.powered-by img {
    height: 20px;
}

/* ===== アラート ===== */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* ===== フォーム ===== */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

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

.form-label .required {
    color: #d7372f;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #d7372f;
    box-shadow: 0 0 0 3px rgba(215, 55, 47, 0.1);
}

.form-input-icon {
    position: relative;
}

.form-input-icon i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.form-input-icon .form-input {
    padding-left: 45px;
}

.form-input-icon.password-field .form-input {
    padding-right: 45px;
}

.form-help-text {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* ===== パスワード表示切替 ===== */
.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.password-toggle:hover {
    color: #d7372f;
}

/* ===== ボタン ===== */
.register-btn,
.login-btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #d7372f 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
    box-sizing: border-box;
    text-decoration: none;
    display: inline-block;
}

.register-btn:hover,
.login-btn:hover {
    background: #c32e26;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 55, 47, 0.4);
}

.seller-btn {
    width: 100%;
    padding: 14px 16px;
    background: white;
    color: #d7372f;
    border: 2px solid #d7372f;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    box-sizing: border-box;
}

.seller-btn:hover {
    background: #d7372f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(215, 55, 47, 0.4);
}

/* ===== リンク ===== */
.register-links,
.login-links {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.register-links a,
.login-links a {
    color: #d7372f;
    text-decoration: none;
    font-weight: 600;
}

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

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #d7372f;
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
}

.back-link:hover {
    text-decoration: underline;
}

/* ===== ソーシャルログインボタン ===== */
.line-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #06C755;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.line-login-btn:hover {
    background: #05b04b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.line-login-btn i {
    margin-right: 8px;
    font-size: 18px;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background: #ffffff;
    color: #3c4043;
    border: 2px solid #dadce0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
    box-sizing: border-box;
}

.google-login-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 64, 67, 0.15);
}

.google-login-btn img {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

/* ===== 区切り線 ===== */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 15px;
}

/* ===== 完了画面 ===== */
.success-icon {
    text-align: center;
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 20px;
}

.user-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.user-info-item {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.user-info-item:last-child {
    border-bottom: none;
}

.user-info-item i {
    margin-right: 10px;
    width: 20px;
    color: #4caf50;
}

/* ===== レスポンシブ ===== */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

