/* VIP LOGIN CSS Document Google Material Design风格 */

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

body {
    font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
}

.event-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1976d2;
}

.event-date {
    font-size: 0.9rem;
    color: #666;
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
}

.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 100%;
    max-width: 500px; /* 增加最大宽度 */
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section {
    padding: 2rem;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
}

.title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: center;
    margin-bottom: 1.5rem;
}

.alert-card {
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.alert-card .icon {
    font-size: 2.0rem;
    color: #ffeb3b;
    font-weight: bolder;
}

.alert-card .content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.info-card {
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
}

.info-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.highlight {
    color: #ffeb3b;
    font-weight: 500;
}

.form-section {
    padding: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
    position: relative;
    width: 100%;
}

.md-input {
    width: 100%;
    padding: 1rem 0.75rem 0.5rem 0.75rem;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    border-radius: 0;
}

.md-input:focus {
    border-bottom-color: #1976d2;
    box-shadow: 0 1px 0 0 #1976d2;
}

.md-input:valid, .md-input:focus {
    border-bottom-color: #1976d2;
}

.input-label {
    position: absolute;
    left: 0.75rem;
    top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.md-input:focus + .input-label,
.md-input:not(:placeholder-shown) + .input-label {
    top: -0.5rem;
    font-size: 0.75rem;
    color: #1976d2;
}

.input-with-button {
    display: grid;
    grid-template-columns:1fr 130px; /* 手机号占剩余空间，验证码按钮固定宽度 */
    gap: 0.75rem;
    width: 100%;    /* 确保占满整行宽度 */
}

.input-with-button .md-input {
    width: 100%;
}

.btn {
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: white;
    width: 100%;
    padding: 0.75rem 1.5rem;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #2196f3 0%, #42a5f5 100%);
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.msginfo {
    margin: 1rem 0;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

.msginfo.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.msginfo.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.msginfo.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.error-message {
    color: #f44336;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.message-box {
    margin: 1rem 0;
}

.message-box span {
    display: block;
    padding: 0.75rem;
    background: #f8d7da;
    color: #721c24;
    border-radius: 8px;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.footer {
    background: #f8f9fa;
    padding: 2rem 1rem;
    text-align: center;
    color: #6c757d;
    font-size: 0.8rem;
}

.footer a {
    color: #6c757d;
    text-decoration: none;
}

.footer a:hover {
    color: #1976d2;
    text-decoration: underline;
}

.event-image {
    width: 100%;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .logo-container {
        justify-content: center;
    }
    
    .main {
        padding: 1rem;
    }
    
    .card {
        margin: 0.5rem;
        max-width: 100%;
    }
    
    .hero-section {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 1.5rem;
    }
    
    .title {
        font-size: 1.25rem;
    }
    
    .input-with-button {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.floating-label {
    position: relative;
    width: 100%;
}

.floating-label input,
.floating-label select {
    width: 100%;
    padding-top: 1.25rem;
    padding-bottom: 0.25rem;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    background: transparent;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.floating-label input:focus,
.floating-label select:focus {
    border-bottom-color: #1976d2;
    box-shadow: 0 1px 0 0 #1976d2;
}

.floating-label label {
    position: absolute;
    top: 0.5rem; /* 标签位置更靠上 */
    left: 0;
    color: #666;
    pointer-events: none;
    transition: all 0.3s ease;
    font-size: 1.1rem; /* 字体更大 */
    font-weight: 500;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label select:focus + label,
.floating-label select:not([value=""]) + label {
    top: -0.55rem; /* 浮起位置更靠上 */
    font-size: 0.85rem; /* 浮起后字体大小 */
    color: #1976d2;
}