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

body {
	font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Helvetica Neue',sans-serif;
	background: #f5f5f5;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px
}

.login-container {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	width: 100%;
	max-width: 380px;
	padding: 40px
}

.login-title {
	font-size: 24px;
	color: #333;
	text-align: center;
	margin-bottom: 30px;
	font-weight: 400
}

.tab-container {
	display: flex;
	margin-bottom: 30px;
	border-bottom: 1px solid #e8e8e8
}

.tab {
	flex: 1;
	text-align: center;
	padding: 12px 0;
	color: #666;
	cursor: pointer;
	font-size: 14px;
	border-bottom: 2px solid transparent;
	transition: all 0.3s
}

.tab.active {
	color: #5B8FF9;
	border-bottom-color: #5B8FF9
}

.tab:hover {
	color: #5B8FF9
}

.form-group {
	margin-bottom: 20px
}

.phone-input-group {
	display: flex;
	gap: 10px;
	align-items: center
}

.country-code {
	display: flex;
	align-items: center;
	padding: 10px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	min-width: 80px;
	font-size: 14px;
	color: #333
}

.country-code:hover {
	border-color: #5B8FF9
}

.country-code::after {
	content: '▼';
	margin-left: 8px;
	font-size: 10px;
	color: #999
}

input[type="text"],input[type="tel"],input[type="password"] {
	flex: 1;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	font-size: 14px;
	transition: border-color 0.3s
}

input[type="text"]:focus,input[type="tel"]:focus,input[type="password"]:focus {
	outline: none;
	border-color: #5B8FF9
}

input::placeholder {
	color: #bfbfbf
}

.verification-group {
	display: flex;
	gap: 10px
}

.verification-group input {
	flex: 1
}

.get-code-btn {
	padding: 10px 20px;
	border: 1px solid #5B8FF9;
	background: white;
	color: #5B8FF9;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.3s
}

.get-code-btn:hover {
	background: #f0f7ff
}

.get-code-btn:disabled {
	border-color: #d9d9d9;
	color: #bfbfbf;
	background: #f5f5f5;
	cursor: not-allowed
}

.login-btn {
	width: 100%;
	padding: 12px;
	border: none;
	border-radius: 4px;
	background: #92B6F5;
	color: white;
	font-size: 16px;
	cursor: pointer;
	transition: background 0.3s;
	margin-top: 10px
}

.login-btn:hover {
	background: #7BA5F3
}

.login-btn:active {
	background: #5B8FF9
}

.copy-button {
	margin-top: 10px;
	width: 100%;
	padding: 8px;
	background: #1890ff;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px
}

.copy-button:hover {
	background: #40a9ff
}

.copy-button:active {
	background: #096dd9
}

.copy-btn-small {
	padding: 6px 14px;
	background: #5B8FF9;
	color: white;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-size: 12px;
	transition: background 0.3s;
	white-space: nowrap
}

.copy-btn-small:hover {
	background: #4080E8
}

.refresh-btn {
	width: 100%;
	padding: 10px;
	border: 1px solid #5B8FF9;
	background: white;
	color: #5B8FF9;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	margin-top: 15px;
	transition: all 0.3s
}

.refresh-btn:hover {
	background: #f0f7ff
}

.password-login-content,.sms-login-content,.oauth-login-content {
	display: none
}

.password-login-content.active,.sms-login-content.active,.oauth-login-content.active {
	display: block
}

/* 授权登录样式 */
.oauth-mode-selector {
	display: flex;
	gap: 10px;
	margin-bottom: 25px
}

.mode-btn {
	flex: 1;
	padding: 12px 15px;
	border: 2px solid #e8e8e8;
	background: white;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	color: #666
}

.mode-btn.active {
	border-color: #5B8FF9;
	background: #f0f7ff;
	color: #5B8FF9
}

.mode-btn:hover {
	border-color: #5B8FF9
}

.mode-icon {
	font-size: 24px
}

.oauth-create-mode,.oauth-use-mode {
	display: none
}

.oauth-create-mode.active,.oauth-use-mode.active {
	display: block
}

.oauth-label {
	display: block;
	font-size: 14px;
	color: #333;
	margin-bottom: 8px;
	font-weight: 500
}

.input-hint {
	font-size: 12px;
	color: #999;
	margin-top: 6px
}

.auth-result {
	margin-top: 20px;
	padding: 20px;
	background: #f6ffed;
	border: 1px solid #b7eb8f;
	border-radius: 8px
}

.result-title {
	font-size: 16px;
	font-weight: 600;
	color: #52c41a;
	margin-bottom: 15px
}

.auth-url-box,.auth-id-box {
	background: white;
	padding: 15px;
	border-radius: 6px;
	margin-bottom: 12px
}

.auth-url-label,.auth-id-label {
	font-size: 12px;
	color: #666;
	margin-bottom: 8px
}

.auth-url,.auth-id-value {
	font-family: 'Courier New',monospace;
	font-size: 13px;
	color: #1890ff;
	word-break: break-all;
	margin-bottom: 10px;
	padding: 10px;
	background: #f5f5f5;
	border-radius: 4px
}

.auth-hint {
	font-size: 12px;
	color: #666;
	line-height: 1.8;
	margin-top: 10px;
	padding: 10px;
	background: white;
	border-radius: 6px
}

.auth-status {
	margin-top: 20px;
	padding: 20px;
	border-radius: 8px;
	text-align: center
}

.status-icon {
	font-size: 48px;
	margin-bottom: 15px
}

.status-text {
	font-size: 14px;
	line-height: 1.6
}

.loading {
	display: none;
	text-align: center;
	color: #5B8FF9;
	margin: 20px 0;
	font-size: 14px
}

.loading.active {
	display: block
}

.spinner {
	border: 2px solid #f3f3f3;
	border-top: 2px solid #5B8FF9;
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px
}

@keyframes spin {
	0% {
		transform: rotate(0deg)
	}

	100% {
		transform: rotate(360deg)
	}
}

.cookie-result {
	margin-top: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	border: 1px solid #e8e8e8;
	display: none
}

.cookie-result.show {
	display: block
}

.cookie-result-title {
	font-size: 16px;
	font-weight: 600;
	color: #52c41a;
	margin-bottom: 15px;
	display: flex;
	align-items: center
}

.cookie-result-title::before {
	content: '✓';
	display: inline-block;
	width: 20px;
	height: 20px;
	background: #52c41a;
	color: white;
	border-radius: 50%;
	text-align: center;
	line-height: 20px;
	margin-right: 8px;
	font-size: 14px
}

.cookie-content {
	background: white;
	padding: 15px;
	border-radius: 4px;
	border: 1px solid #d9d9d9;
	font-family: 'Courier New',monospace;
	font-size: 12px;
	color: #333;
	word-break: break-all;
	line-height: 1.6;
	max-height: 300px;
	overflow-y: auto
}

.cookie-item {
	margin-bottom: 8px;
	padding: 8px;
	background: #fafafa;
	border-radius: 4px
}

.cookie-name {
	color: #1890ff;
	font-weight: 600
}

.cookie-value {
	color: #666;
	margin-left: 8px
}

.result-container {
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	width: 100%;
	max-width: 600px;
	padding: 30px;
	margin-top: 20px;
	display: none
}

.result-container.active {
	display: block
}

.result-title {
	font-size: 20px;
	color: #333;
	margin-bottom: 20px;
	font-weight: 500
}

.extracted-info {
	background: #f0f9ff;
	border: 1px solid #91d5ff;
	border-radius: 4px;
	padding: 20px
}

.info-item {
	background: white;
	padding: 12px 15px;
	border-radius: 4px;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-left: 3px solid #5B8FF9
}

.info-item:last-child {
	margin-bottom: 0
}

.info-label {
	font-weight: 600;
	color: #333;
	margin-right: 10px;
	font-size: 13px
}

.info-value {
	font-family: 'Courier New',Courier,monospace;
	color: #5B8FF9;
	background: #f5f5f5;
	padding: 6px 10px;
	border-radius: 3px;
	flex: 1;
	margin-right: 10px;
	word-break: break-all;
	font-size: 13px
}

.success-msg {
	background: #f6ffed;
	color: #52c41a;
	padding: 10px 15px;
	border-radius: 4px;
	border: 1px solid #b7eb8f;
	display: none;
	margin-top: 10px;
	font-size: 13px
}

.success-msg.active {
	display: block
}

.tenant-item {
	padding: 15px;
	margin-bottom: 10px;
	background: white;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.3s;
	display: flex;
	justify-content: space-between;
	align-items: center
}

.tenant-item:hover {
	border-color: #5B8FF9;
	background: #f0f7ff
}

.tenant-name {
	font-size: 14px;
	color: #333;
	font-weight: 500
}

.tenant-arrow {
	color: #999;
	font-size: 18px
}

.hidden-url {
	display: none
}