@charset "utf-8";
/**
 * ユーザ管理 ログイン用CSS
 *
 * create: 2025-09-24
 * update: 2025-10-19
 *
 * @package     yonde
 * @author      ik
 * @copyright   Copyright (c) 2025 , NetReal
 * @version     yonde 1.00
 */

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

/* ログイン画面のbodyクラス設定 */
body.login-page {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-y: auto;
}

/* cmn.phpベースでのフルスクリーンセンタリング */
.fullscreen-center-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    padding: 2rem;
}

.admin-layout {
    width: 100%;
    min-height: 100vh;
}

.login-container {
    background: white;
    border-radius: 15px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.login-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #11998e, #38ef7d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #11998e;
    box-shadow: 0 0 0 3px rgba(17, 153, 142, 0.1);
}

.error-msg {
    background: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #f5c6cb;
    margin-bottom: 1rem;
}

.error-msg div {
    margin-bottom: 0.5rem;
}

.error-msg div:last-child {
    margin-bottom: 0;
}

.login-btn {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(17, 153, 142, 0.4);
}

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

.demo-account-card {
    transition: all 0.2s ease;
    padding: 0.75rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    margin-bottom: 0.5rem;
}

.demo-account-card:hover {
    background: #e3f2fd !important;
    transform: scale(1.01);
}

.login-info {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #11998e;
}

.info-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.info-content {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.back-link {
    margin-top: 1.5rem;
    text-align: center;
}

.back-link a {
    color: #11998e;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #38ef7d;
}

/* 管理画面共通スタイル */
.admin-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.admin-user-info {
    display: flex;
    align-items: center;
}

.user-name {
    font-size: 0.9rem;
    color: #ecf0f1;
}

.admin-sidebar {
    background: #f8f9fa;
    min-height: calc(100vh - 80px);
    padding: 1rem 0;
    border-right: 1px solid #dee2e6;
}

.sidebar-header h5 {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}

.sidebar-nav .nav-link {
    color: #495057;
    padding: 0.75rem 1rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background: #e9ecef;
    color: #2c3e50;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
}

.admin-main-content {
    padding: 2rem;
}

.sidebar-footer {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.company-info {
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

@media (max-width: 480px) {
    .login-container {
        margin: 1rem;
        padding: 2rem;
    }

    .admin-sidebar-wrapper {
        display: none;
    }

    .admin-main-wrapper {
        flex: 1;
    }
}