/* ==========================================================================
   Core Design: GEAR MECHANICS Framework
   System Name: Sistema
   ========================================================================== */

:root {
    --primary-blue: #00d2ff;
    --gear-base-color: rgba(255, 255, 255, 0.03);
    --bg-dark: #121416;
    --glass-bg: rgba(255, 255, 255, 0.05);
}

/* Base Reset */
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f2f5;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ディスプレイ風メインコンテナ */
.monitor-frame {
    width: 90%;
    max-width: 1000px;
    min-height: 600px;
    background: var(--bg-dark);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border: 4px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 40px 0;
}

/* ギア装飾ユニット */
.gear {
    position: absolute;
    color: var(--gear-base-color);
    fill: currentColor;
    animation: rotate 20s linear infinite;
    transform-origin: center center;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.3));
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gear-1 { width: 500px; top: -150px; right: -150px; }
.gear-2 { width: 350px; bottom: -80px; left: -100px; animation-direction: reverse; }

/* 送信中等のアクティブ演出 */
.gear-active {
    animation: rotate 1s linear infinite !important;
    color: rgba(0, 210, 255, 0.1) !important;
    filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8));
}

/* レイアウトエリア（フレックスコンテナ） */
.login-area {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: stretch; /* 左右の高さを揃える */
    gap: 20px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    z-index: 10;
}

/* カード共通：精密デザイン & Glassmorphism */
.login-card {
    display: flex;
    flex-direction: column;
    width: 360px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    text-align: center;
}

.login-card h2 { 
    margin-bottom: 30px; 
    letter-spacing: 2px; 
    font-weight: 300; 
    text-transform: uppercase;
}

/* 告知カード専用の装飾 */
.maintenance-notice {
    background: rgba(0, 210, 255, 0.02);
}

.notice-body {
    color: rgba(255, 255, 255, 0.7);
    flex-grow: 1; /* 高さが伸びた際に領域を埋める */
}

/* フォーム・入力要素 */
.input-group { margin-bottom: 20px; text-align: left; }

input {
    width: 100%;
    padding: 12px;
    margin: 5px 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid #444;
    border-radius: 5px;
    color: white;
    box-sizing: border-box;
    outline: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus { 
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

button, .btn-login {
    width: 100%;
    padding: 15px;
    background: transparent;
    color: var(--primary-blue);
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

button:hover, .btn-login:hover {
    background: var(--primary-blue);
    color: black;
    box-shadow: 0 0 20px var(--primary-blue);
}

/* Flashメッセージ */
.message {
    margin: 10px 0;
    color: #ff4d4d;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: bold;
}

/* ==========================================================================
   Responsive Control
   ========================================================================== */

@media (max-width: 768px) {
    body {
        height: auto;
        padding: 20px 0;
    }

    .monitor-frame {
        width: 95%;
        height: auto;
        min-height: auto;
        padding: 20px 0;
    }

    .login-area {
        flex-direction: column;
        align-items: center;
    }

    .login-card {
        width: 100%;
        max-width: 360px;
    }

    /* お知らせを先に表示する場合 */
    .maintenance-notice {
        order: 1;
    }
}