* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}
html, body {
    width: 100%;
    height: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
}
.container {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 50px 28px 40px;
    letter-spacing:3px;
}
.logo-area {
    text-align: center;
    margin-bottom: 50px;
}
.logo-icon {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.logo-area h1 {
    font-size: 28px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.logo-area p {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}
.form-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
    padding-left: 4px;
}
.input-wrap {
    position: relative;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 4px;
    transition: all 0.3s ease;
}
.input-wrap:focus-within {
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.input-wrap input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: transparent;
    -webkit-appearance: none;
    color: #333;
}
.input-wrap input:focus {
    outline: none;
}
.input-wrap input::placeholder {
    color: #bbb;
}
.code-wrap {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 4px 0px 4px 4px;
}
.code-wrap:focus-within {
    background: #f0f4ff;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.1);
}
.code-wrap input {
    width: calc(100% - 90px);
    height: 42px;
    padding: 0 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    background: transparent;
    -webkit-appearance: none;
    color: #333;
}
.code-wrap input:focus {
    outline: none;
}
.code-wrap input::placeholder {
    color: #bbb;
}
.code-btn {
    height: 36px;
    padding: 0 10px;
    margin-right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(102,126,234,0.3);
    flex-shrink: 0;
}
.code-btn:disabled {
    opacity: 0.6;
    background: #999;
}
.code-btn:active {
    transform: scale(0.96);
}
.submit-btn {
    width: 100%;
    height: 54px;
    margin-top: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(102,126,234,0.4);
    transition: all 0.3s ease;
}
.submit-btn:active {
    transform: translateY(2px);
    box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}
.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 4px;
}
.form-links a {
    font-size: 14px;
    color: #667eea;
    text-decoration: none;
}
.footer {
    text-align: center;
    margin-top: 32px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    display: none;
}
