/**
 * Discord Login — Login page styles.
 *
 * Applied both on the custom Discord login page and in admin-mode
 * for the "Back to Discord" link.
 *
 * @package Discord_Login
 */

/* -------------------------------------------------------------------------
 * Custom Discord login page
 * ---------------------------------------------------------------------- */

.discord-login-page #login {
	padding: 8% 0 0;
	width: 320px;
	margin: auto;
}

.discord-login-page #login h1 a {
	display: block;
	text-align: center;
	font-size: 20px;
	font-weight: 400;
	line-height: 1.3;
	color: #50575e;
	text-decoration: none;
	/* Override WP's default background-image logo. */
	background-image: none !important;
	width: auto;
	height: auto;
	text-indent: 0;
	margin-bottom: 24px;
}

.discord-login-logo {
	display: block;
	max-width: 100%;
	max-height: 120px;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.discord-login-container {
	text-align: center;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	padding: 26px 24px;
}

.discord-login-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	padding: 12px 20px;
	background-color: #5865f2;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s ease;
	box-sizing: border-box;
}

.discord-login-button:hover,
.discord-login-button:focus {
	background-color: #4752c4;
	color: #fff;
	text-decoration: none;
}

.discord-login-button:focus-visible {
	outline: 2px solid #4752c4;
	outline-offset: 2px;
}

.discord-login-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

.discord-login-admin-link {
	margin: 16px 0 0;
	font-size: 12px;
}

.discord-login-admin-link a {
	color: #999;
	text-decoration: none;
}

.discord-login-admin-link a:hover,
.discord-login-admin-link a:focus {
	color: #555;
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * Error / info messages on the custom page
 * ---------------------------------------------------------------------- */

.discord-login-page #login_error,
.discord-login-page .message {
	margin-bottom: 16px;
}

/* -------------------------------------------------------------------------
 * "Back to Discord login" link (shown on the standard WP form in admin mode)
 * ---------------------------------------------------------------------- */

.discord-login-back {
	text-align: center;
	margin-bottom: 16px;
}

.discord-login-back a {
	font-size: 13px;
	color: #5865f2;
	text-decoration: none;
}

.discord-login-back a:hover,
.discord-login-back a:focus {
	text-decoration: underline;
}

/* -------------------------------------------------------------------------
 * "Go to site" link at the bottom
 * ---------------------------------------------------------------------- */

.discord-login-page #backtoblog {
	text-align: center;
	margin-top: 16px;
}
