/* Patient Registration Form Styles */
.registration-container {
	max-width: 64rem;
	margin: 0 auto;
	background-color: rgb(31 41 55);
	border-radius: 0.75rem;
	box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
	padding: 2rem;
	border: 1px solid rgb(55 65 81);
}

.registration-header {
	margin-bottom: 2rem;
}

.registration-logo {
	height: 3rem;
	width: 3rem;
}

.registration-title {
	font-size: 1.875rem;
	line-height: 2.25rem;
	font-weight: 700;
}

.registration-subtitle {
	color: rgb(156 163 175);
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 500;
	color: rgb(209 213 219);
	margin-bottom: 0.5rem;
}

.form-input {
	width: 100%;
	padding: 0.5rem 1rem;
	background-color: rgb(55 65 81);
	border: 1px solid rgb(75 85 99);
	border-radius: 0.5rem;
	color: rgb(243 244 246);
}

.form-input:focus {
	outline: 2px solid rgb(59 130 246);
	outline-offset: 2px;
}

/* Phone number validation styles */
.form-input.phone-exists {
	border-color: rgb(239 68 68);
	box-shadow: 0 0 0 1px rgb(239 68 68);
}

.form-input.phone-new {
	border-color: rgb(34 197 94);
	box-shadow: 0 0 0 1px rgb(34 197 94);
}

.form-input.phone-checking {
	border-color: rgb(251 191 36);
	box-shadow: 0 0 0 1px rgb(251 191 36);
}

.phone-status {
	font-size: 0.75rem;
	margin-top: 0.25rem;
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.phone-status.exists {
	color: rgb(239 68 68);
}

.phone-status.new {
	color: rgb(34 197 94);
}

.phone-status.checking {
	color: rgb(251 191 36);
}

/* Patient info display styles */
.patient-info {
	margin-top: 0.5rem;
	padding: 0.75rem;
	background-color: rgba(239, 68, 68, 0.1);
	border: 1px solid rgb(239 68 68);
	border-radius: 0.5rem;
}

.patient-info-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.patient-details {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
}

.patient-info-icon {
	color: rgb(239 68 68);
	font-size: 1.25rem;
}

.patient-text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.patient-label {
	font-size: 0.75rem;
	color: rgb(239 68 68);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.patient-name-id {
	font-size: 0.875rem;
	color: rgb(243 244 246);
	font-weight: 500;
}

.patient-login-btn {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.75rem;
	background-color: rgb(239 68 68);
	color: white;
	border: none;
	border-radius: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.patient-login-btn:hover {
	background-color: rgb(220 38 38);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

.patient-login-btn:active {
	transform: translateY(0);
}

@media (max-width: 640px) {
	.patient-info-content {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.patient-login-btn {
		justify-content: center;
	}
}

.form-input::placeholder {
	color: rgb(156 163 175);
}

.form-hint {
	font-size: 0.875rem;
	color: rgb(156 163 175);
	margin-top: 0.25rem;
}

.form-error {
	color: rgb(239 68 68);
	font-size: 0.875rem;
	margin-top: 0.25rem;
}

.form-checkbox {
	height: 1rem;
	width: 1rem;
	color: rgb(37 99 235);
}

.consent-link {
	text-decoration: underline;
	color: rgb(96 165 250);
}

.consent-link:hover {
	color: rgb(59 130 246);
}

.btn {
	width: 100%;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	transition-property: color, background-color;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 200ms;
}

.btn-primary {
	background-color: rgb(37 99 235);
	color: white;
}

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.btn-secondary {
	background-color: rgb(75 85 99);
	color: white;
}

.btn-secondary:hover {
	background-color: rgb(55 65 81);
}

.alert {
	margin-bottom: 1rem;
	padding: 0.75rem;
	border-radius: 0.5rem;
}

.alert-success {
	background-color: rgb(22 163 74);
	color: white;
}

.alert-error {
	background-color: rgb(220 38 38);
	color: white;
}

.grid-2-cols {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	gap: 1.5rem;
}

@media (min-width: 768px) {
	.grid-2-cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.flex-row {
	display: flex;
	flex-direction: row;
	gap: 1rem;
}

.flex-1 {
	flex: 1;
}

.registration-layout {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

.registration-main {
	flex: 1;
}

.consultation-info {
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.consultation-details {
	display: flex;
	gap: 2rem;
	justify-content: flex-start;
	align-items: center;
}

.detail-item {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.detail-icon {
	font-size: 1.5rem;
	color: #60a5fa;
	background: rgba(96, 165, 250, 0.1);
	padding: 0.75rem;
	border-radius: 50%;
}

.detail-text {
	display: flex;
	flex-direction: column;
}

.detail-label {
	font-size: 0.875rem;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.detail-value {
	font-size: 1.125rem;
	color: #f3f4f6;
	font-weight: 500;
}

@media (max-width: 640px) {
	.consultation-details {
		flex-direction: column;
		gap: 1rem;
		align-items: flex-start;
	}
}

/* Multiple patients display styles */
.multiple-patients {
	margin-top: 0.75rem;
	padding: 1rem;
	background-color: rgba(37, 99, 235, 0.1);
	border: 1px solid rgb(75 85 99);
	border-radius: 0.5rem;
}

.multiple-patients-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
	color: rgb(96 165 250);
	font-weight: 500;
	font-size: 0.875rem;
}

.multiple-patients-header i {
	font-size: 1rem;
}

.patients-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.patient-card {
	padding: 0.75rem;
	background-color: rgba(55, 65, 81, 0.5);
	border: 1px solid rgb(75 85 99);
	border-radius: 0.5rem;
	transition: all 0.2s ease;
}

.patient-card:hover {
	background-color: rgba(55, 65, 81, 0.8);
	border-color: rgb(107 114 128);
}

.patient-card-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.patient-details {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex: 1;
}

.patient-card-icon {
	color: rgb(96 165 250);
	font-size: 1.125rem;
}

.patient-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.patient-text strong {
	color: rgb(243 244 246);
	font-size: 0.875rem;
}

.patient-id,
.patient-email {
	color: rgb(156 163 175);
	font-size: 0.75rem;
}

.patient-login-btn {
	padding: 0.5rem 1rem;
	background-color: rgb(59 130 246);
	color: white;
	border: none;
	border-radius: 0.375rem;
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 0.375rem;
	white-space: nowrap;
}

.patient-login-btn:hover {
	background-color: rgb(37 99 235);
	transform: translateY(-1px);
}

.patient-login-btn:active {
	transform: translateY(0);
}

@media (max-width: 640px) {
	.patient-card-content {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.patient-login-btn {
		justify-content: center;
	}
}

@media (max-width: 1024px) {
	.registration-layout {
		flex-direction: column;
	}
}