/* Modern Bright iPhone-style Login Design */
/* Reset and base styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif; background: #f8f9fa; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; line-height: 1.47058823529; -webkit-font-smoothing: antialiased; }
.login-container { width: 100%; max-width: 380px; position: relative; }
.login-box { background: #ffffff; border-radius: 20px; padding: 40px 32px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05); border: 0.5px solid rgba(0, 0, 0, 0.04); animation: fadeInUp 0.4s ease-out; position: relative; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.logo { text-align: center; margin-bottom: 36px; }
.logo h1 { color: #1d1d1f; font-size: 32px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.03em; }
.logo p { color: #8e8e93; font-size: 16px; font-weight: 400; }
.form-group { margin-bottom: 24px; position: relative; }
.form-group:last-of-type { margin-bottom: 28px; }
label { display: block; margin-bottom: 8px; color: #1d1d1f; font-weight: 600; font-size: 15px; }
input[type="text"], input[type="number"], input[type="password"], select { width: 100%; padding: 18px 18px; border: 1.5px solid #e5e5ea; border-radius: 14px; font-size: 17px; transition: all 0.2s ease; background: #ffffff; font-family: inherit; color: #1d1d1f; }
input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, select:focus { outline: none; border-color: #007aff; box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15); }
input[type="text"]:hover, input[type="number"]:hover, input[type="password"]:hover, select:hover { border-color: #c7c7cc; }
.protocol-toggle { display: flex; border: 1.5px solid #e5e5ea; border-radius: 14px; overflow: hidden; width: 100%; }
.protocol-btn { flex: 1; padding: 16px 0; border: none; background: #ffffff; color: #8e8e93; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; font-family: inherit; text-align: center; margin: 0; border-radius: 0; }
.protocol-btn:first-child { border-top-left-radius: 12px; border-bottom-left-radius: 12px; }
.protocol-btn:last-child { border-top-right-radius: 12px; border-bottom-right-radius: 12px; }
.protocol-btn:hover { background: #f0f8ff; color: #007aff; }
.protocol-btn.active { background: #007aff; color: white; }
.protocol-btn + .protocol-btn { border-left: 1px solid #e5e5ea; }
.protocol-btn.active + .protocol-btn { border-left: 1px solid #007aff; }
.protocol-btn:first-child.active + .protocol-btn { border-left: 1px solid #007aff; }
.checkbox-label { display: flex; align-items: center; cursor: pointer; font-weight: 400; color: #1d1d1f; font-size: 15px; margin-bottom: 0; }
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark { width: 24px; height: 24px; border: 1.5px solid #d1d1d6; border-radius: 8px; margin-right: 14px; position: relative; transition: all 0.2s ease; flex-shrink: 0; background: #ffffff; }
.checkbox-label:hover .checkmark { border-color: #007aff; background: #f0f8ff; }
.checkbox-label input[type="checkbox"]:checked + .checkmark { background: #007aff; border-color: #007aff; }
.checkbox-label input[type="checkbox"]:checked + .checkmark::after { content: '✓'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: white; font-size: 14px; font-weight: 700; }
.login-btn { width: 100%; padding: 18px; background: #007aff; color: white; border: none; border-radius: 14px; font-size: 17px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; position: relative; overflow: hidden; font-family: inherit; display: flex; align-items: center; justify-content: center; min-height: 54px; margin-top: 12px; }
.login-btn:hover:not(:disabled) { background: #0066cc; transform: scale(0.98); }
.login-btn:active:not(:disabled) { transform: scale(0.96); background: #0056b3; }
.login-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.loading-spinner { width: 22px; height: 22px; border: 2.5px solid rgba(255, 255, 255, 0.3); border-top: 2.5px solid white; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.error-message { padding: 18px; border-radius: 14px; margin-top: 20px; font-size: 15px; background: #ff3b30; color: white; animation: slideDown 0.3s ease-out; line-height: 1.4; display: none; font-weight: 500; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.debug-info { margin-top: 20px; padding: 18px; background: #f8f9fa; border-radius: 14px; font-size: 14px; color: #6c757d; line-height: 1.5; border: 1px solid #e9ecef; }
.debug-info strong { color: #495057; }
.debug-info a { color: #007aff; text-decoration: none; }
.debug-info a:hover { text-decoration: underline; }
.debug-info p { margin-bottom: 6px; }
.debug-info p:last-child { margin-bottom: 0; }
input::placeholder { color: #c7c7cc; opacity: 1; }
input:focus::placeholder { opacity: 0.7; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 50px white inset !important; -webkit-text-fill-color: #1d1d1f !important; border-color: #e5e5ea !important; }