/* public/assets/css/external.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    background-color: #0f1a2f;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 193, 7, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 193, 7, 0.05) 0%, transparent 20%);
}

.container {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: 40px 20px;
    border-radius: 12px;
    background: linear-gradient(145deg, #2a2a3a, #1e1e2a);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid #3a3a4a;
}

/* 金融风格镶金边效果 */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg, #d4af37, #f2ebd0, #d4af37);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo {
    margin-bottom: 40px;
    position: relative;
}

.logo img {
    max-width: 250px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #d4af37, #f2ebd0, #d4af37);
    margin: 15px auto 0;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
    letter-spacing: 1px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #d4af37, #f2ebd0);
    color: #1e1e2a;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #f2ebd0, #d4af37);
    transition: all 0.3s ease;
    z-index: -1;
    border-radius: 50px;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: #1e1e2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
}

.btn-secondary:hover {
    color: #1e1e2a;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.checkbox-label span a {
    color: #d4af37;
    text-decoration: none;
}

.checkbox-label span a:hover {
    text-decoration: underline;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #d4af37, #f2ebd0);
    color: #1e1e2a;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.links {
    margin-top: 20px;
    text-align: center;
}

.links a {
    color: #d4af37;
    text-decoration: none;
    font-size: 0.9rem;
}

.error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #e74c3c;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer {
    margin-top: 50px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* 金融风格装饰元素 */
.decoration {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.1;
    pointer-events: none;
}

.decoration-1 {
    top: -30px;
    left: -30px;
    background: radial-gradient(circle, #d4af37 0%, transparent 70%);
}

.decoration-2 {
    bottom: -30px;
    right: -30px;
    background: radial-gradient(circle, #d4af37 0%, transparent 70%);
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    animation: fadeIn 0.8s ease-out;
}

.logo {
    animation: fadeIn 1s ease-out 0.2s both;
}

.tagline {
    animation: fadeIn 1s ease-out 0.4s both;
}

.buttons, .form-group {
    animation: fadeIn 1s ease-out 0.6s both;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .container {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 30px 15px;
    }
}

/* 免责声明模态框样式 */
.disclaimer-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.disclaimer-modal-content {
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(145deg, #2a2a3a, #1e1e2a);
    border-radius: 12px;
    border: 2px solid #d4af37;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideIn 0.3s ease;
}

.disclaimer-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(242, 235, 208, 0.1));
    border-bottom: 2px solid #d4af37;
}

.disclaimer-modal-header h2 {
    margin: 0;
    color: #d4af37;
    font-size: 1.5rem;
}

.disclaimer-modal-close {
    background: none;
    border: none;
    color: #d4af37;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.disclaimer-modal-close:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: rotate(90deg);
}

.disclaimer-modal-body {
    flex: 1;
    overflow: hidden;
    padding: 0;
    min-height: 500px;
}

.disclaimer-modal-body iframe {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 768px) {
    .disclaimer-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .disclaimer-modal-header h2 {
        font-size: 1.2rem;
    }
    
    .disclaimer-modal-close {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}