/*!
 * Custom WordPress Login Page Styles for Backbone Theme
 * Uses site's color scheme and branding
 */

/* Import site color variables */
:root {
	--color-primary: #085C9A;
	--color-text-primary: #000000;
	--link-color: #169AFD;
	--background-color: #FDFAF1;
	--background-secondary-color: #FBF5E4;
	--yellow-color: #FCBC00;
	--gray-color: #9F9F9F;
	--color-border: #e5e7eb;
	--color-border-focus: var(--color-primary);
}

/* Login page background */
body.login {
	background: linear-gradient(135deg, var(--background-color) 0%, var(--background-secondary-color) 100%);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Login form container */
#login {
	max-width: 400px;
	margin: 0 auto;
	padding: 2rem;
}

/* Login form */
#loginform {
	background: white;
	border-radius: 12px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
	padding: 2.5rem;
	border: 1px solid var(--color-border);
}

/* Login form title */
#loginform h1 {
	text-align: center;
	margin-bottom: 2rem;
}

#loginform h1 a {
	background-image: url('../images/SBK_liggande_RGB-kopia.svg');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	width: 200px;
	height: 60px;
	display: block;
	margin: 0 auto 1rem;
	text-indent: -9999px;
	overflow: hidden;
}

/* Form fields */
#loginform label {
	color: var(--color-text-primary);
	font-weight: 500;
	margin-bottom: 0.5rem;
}

#loginform input[type="text"],
#loginform input[type="password"] {
	width: 100%;
	padding: 0.75rem;
	border: 2px solid var(--color-border);
	border-radius: 8px;
	font-size: 16px;
	transition: all 0.2s ease;
	background: white;
	margin-bottom: 1rem;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(8, 92, 154, 0.1);
	outline: none;
}

/* Submit button */
#loginform input[type="submit"] {
	width: 100%;
	background: var(--color-primary);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 0.875rem;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-top: 1rem;
}

#loginform input[type="submit"]:hover {
	background: #074a7f;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(8, 92, 154, 0.3);
}

#loginform input[type="submit"]:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Remember me checkbox */
#loginform .forgetmenot {
	margin: 1rem 0;
}

#loginform .forgetmenot input[type="checkbox"] {
	width: auto;
	margin-right: 0.5rem;
}

/* Links below form */
#loginform p {
	margin: 1rem 0 0;
}

#loginform a {
	color: var(--link-color);
	text-decoration: none;
	transition: color 0.2s ease;
}

#loginform a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

/* Error messages */
#login_error {
	background: #fee;
	border: 1px solid #fcc;
	color: #c33;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
	text-align: center;
}

/* Success messages */
.message {
	background: #efe;
	border: 1px solid #cfc;
	color: #363;
	border-radius: 8px;
	padding: 1rem;
	margin-bottom: 1rem;
	text-align: center;
}

/* Back to site link */
#backtoblog {
	text-align: center;
	margin-top: 2rem;
}

#backtoblog a {
	color: var(--gray-color);
	text-decoration: none;
	font-size: 14px;
	transition: color 0.2s ease;
}

#backtoblog a:hover {
	color: var(--color-primary);
}

/* Responsive design */
@media (max-width: 480px) {
	#login {
		padding: 1rem;
	}
	
	#loginform {
		padding: 2rem 1.5rem;
	}
	
	#loginform h1 a {
		width: 150px;
		height: 45px;
	}
}

/* Hide default WordPress logo text */
.login h1 a {
	color: transparent !important;
}

/* Custom focus styles for accessibility */
#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#loginform input[type="submit"]:focus {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Loading state for submit button */
#loginform input[type="submit"]:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}
