#secure-session-label span.input {
	width: 57%;
    margin-bottom: 1rem;
}
#secure-session-label span.input input {
	margin-right: .25em;
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    width: 100%;
}

#secure-session-label span.input:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#secure-session-label span.input input:focus {
	outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
span#session-msg {
	padding-top: .25em;
	line-height: 1em;
	font-size: .8em;
    color: #94a3b8;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    display: inline-block;
}
#captcha-field {
	float: left;
}
div.captcha-image {
	position: relative;
	display: block;
	float: left;
	margin: 0 0 0 1em;
	padding: 0;
    border: 2px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    background: #1e293b;
    transition: border-color 0.2s ease;
}

div.captcha-image:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}
#login-links,
#captcha-refresh {
	list-style: none;
	margin: 0;
	padding: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
#login-links {
	position: absolute;
	top: .5em;
	right: 0;
    background: rgba(15, 23, 42, 0.9);
    padding: 0.5rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}
#login-links li,
#captcha-refresh li {
	float: none;
	padding: 0;
    display: inline-block;
}
#login-links li:before,
#captcha-refresh li:before {
	content: '';
}
#login-links li:after,
#captcha-refresh li:after {
	content: '';
}
#login-links li a,
#captcha-refresh li a {
	padding: 0.5rem 1rem;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-block;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid #334155;
}

#login-links li a:hover,
#captcha-refresh li a:hover {
    color: #f1f5f9;
    background: #3b82f6;
    border-color: #3b82f6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

#captcha-image {
	cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.2s ease;
}

#captcha-image:hover {
    transform: scale(1.02);
}

/* Korvarix Dark Theme - Login Page Styles */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #e5e7eb;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Apply korvarix theme to main-container */
.main-container {
  background: transparent !important;
}

.main-container:before {
  background: transparent !important;
  box-shadow: none !important;
}

/* Login container styling */
.login-container {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  max-width: 400px;
  width: 100%;
  margin: 2rem auto;
  position: relative;
  top: 50px;
}

.login-container h1 {
  color: #f1f5f9;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: 600;
}

#secure-session-label span input {
  background: #1e293b;
  color: #e5e7eb;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 0.5rem;
}

#secure-session-label span input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

#login-links li a,
#captcha-refresh li a {
  color: #3b82f6;
  text-decoration: none;
  transition: color 0.2s;
}

#login-links li a:hover,
#captcha-refresh li a:hover {
  color: #60a5fa;
}

div.captcha-image {
  border: 1px solid #334155;
  border-radius: 4px;
  overflow: hidden;
}

#captcha-image {
  filter: brightness(0.9) contrast(1.1);
}

@keyframes rotating {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}
.captcha_loading_image {
	animation: rotating 2s linear infinite;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

/* Login button styling */
.login-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.login-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}
