/* Login - Japanese Web Service Style */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F0F2F5;
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333333;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    background: #FFFFFF;
    border-bottom: 1px solid #E0E0E0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    width: 28px;
    height: 28px;
    background: #4285F4;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #333333;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-link {
    font-size: 13px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-link:hover {
    color: #4285F4;
}

/* Main */
.login-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Card */
.login-card {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 36px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333333;
    text-align: center;
    margin: 0 0 8px 0;
}

.card-desc {
    font-size: 13px;
    color: #888888;
    text-align: center;
    margin: 0 0 24px 0;
}

/* Form */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-family: inherit;
    color: #333333;
    background: #FFFFFF;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.12);
}

.form-control::placeholder {
    color: #BBBBBB;
}

/* Options row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 14px;
    height: 14px;
    accent-color: #4285F4;
    cursor: pointer;
}

.forgot-link {
    font-size: 12px;
    color: #4285F4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-link:hover {
    color: #1a73e8;
    text-decoration: underline;
}

/* Button */
.btn-login {
    width: 100%;
    height: 44px;
    background: #4285F4;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.btn-login:hover {
    background: #3367D6;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.btn-login:active {
    background: #2a56c6;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login.btn-success {
    background: #34A853;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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

/* Notice */
.notice-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 14px;
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 4px;
}

.notice-icon {
    font-size: 13px;
    color: #F9A825;
    flex-shrink: 0;
}

.notice-text {
    font-size: 12px;
    color: #795548;
    line-height: 1.5;
}

/* Alert */
.alert-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.5;
}

.alert-message.hidden {
    display: none;
}

.alert-message.error {
    background: #FFF0F0;
    border: 1px solid #FFCDD2;
    color: #C62828;
}

.alert-message.success {
    background: #F0FFF4;
    border: 1px solid #C8E6C9;
    color: #2E7D32;
}

/* Footer */
.login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 24px;
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    font-size: 12px;
    color: #4285F4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #1a73e8;
    text-decoration: underline;
}

.copyright {
    font-size: 11px;
    color: #999999;
}

/* Responsive */
@media (max-width: 480px) {
    .login-header {
        padding: 10px 16px;
    }

    .login-card {
        padding: 28px 24px;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}
