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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    color: #667eea;
}

.subtitle {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85em;
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.error-message {
    margin-bottom: 15px;
    padding: 12px;
    background: #fee;
    color: #c33;
    border-radius: 6px;
    font-size: 0.9em;
}

.warning-message {
    margin-bottom: 20px;
    padding: 16px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.9em;
    text-align: center;
    line-height: 1.6;
    -webkit-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
}

@-webkit-keyframes fadeIn {
    from { 
        opacity: 0; 
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        -webkit-transform: translateY(0);
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        -webkit-transform: translateY(0);
        transform: translateY(0); 
    }
}

.btn:disabled {
    cursor: not-allowed;
}

/* モーダル */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    margin-bottom: 10px;
    color: #333;
}

.modal-description {
    color: #666;
    margin-bottom: 20px;
}

.form-actions {
    margin-top: 20px;
}

/* iOS用PWAインストール案内（フル表示版） */
.ios-install-guide-full {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.ios-install-guide-full .ios-guide-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.ios-install-guide-full .ios-guide-subtitle {
    font-size: 0.95em;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ios-browser-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.ios-browser-section:last-child {
    margin-bottom: 0;
}

.ios-browser-label {
    font-size: 0.9em;
    font-weight: 700;
    text-align: center;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

table.ios-guide-steps {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    border-collapse: collapse;
    table-layout: fixed;
}

table.ios-guide-steps tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

table.ios-guide-steps tr:last-child {
    border-bottom: none;
}

table.ios-guide-steps td {
    padding: 14px 10px;
    vertical-align: middle;
}

td.ios-step-num {
    width: 48px;
    text-align: center;
    padding: 14px 10px 14px 14px;
}

td.ios-step-num::before {
    content: '';
    display: none;
}

.ios-step-num span {
    display: inline-block;
    background: white;
    color: #667eea;
    font-weight: 700;
    font-size: 0.85em;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    text-align: center;
}

td.ios-step-text {
    text-align: left;
    font-size: 0.95em;
    line-height: 1.5;
}

.ios-icon {
    font-size: 1em;
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}


