/**
 * Authentication Styles for SubmitMyShit
 * Fixed to always use light modal backgrounds
 * Location: /assets/css/auth.css
 */

/* ===================================================================
   AUTH MODAL
   =================================================================== */

.auth-modal {
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
}

.auth-modal .glass-effect {
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #1f2937 !important;
}

/* ===================================================================
   AUTH BUTTONS
   =================================================================== */

.auth-button {
	width: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 0.875rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 1.5rem;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-button:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
	background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.auth-button:active {
	transform: translateY(0);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-button:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.auth-button.danger {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.auth-button.danger:hover:not(:disabled) {
	background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
	box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Icon spacing in auth buttons */
.auth-button i {
	margin-right: 0.5rem;
}

/* Alternative button styling for submit buttons */
button[type="submit"] {
	width: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 0.875rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	font-size: 1rem;
	margin-bottom: 1.5rem;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button[type="submit"]:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ===================================================================
   AUTH LINKS
   =================================================================== */

.auth-link {
	color: #667eea !important;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
	border: none;
	background: none;
	padding: 0;
}

.auth-link:hover {
	color: #764ba2 !important;
	text-decoration: underline;
}

/* ===================================================================
   FORM INPUTS - ALWAYS LIGHT
   =================================================================== */

.auth-modal input[type="text"],
.auth-modal input[type="email"],
.auth-modal input[type="password"] {
	transition: all 0.3s ease;
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	font-size: 1rem;
	background: white !important;
	color: #1f2937 !important;
}

.auth-modal input[type="text"]:focus,
.auth-modal input[type="email"]:focus,
.auth-modal input[type="password"]:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
	background: white !important;
}

/* Force dark text for all modal content */
.auth-modal label,
.auth-modal h1,
.auth-modal h2,
.auth-modal h3,
.auth-modal p,
.auth-modal span,
.auth-modal div {
	color: #1f2937 !important;
}

/* ===================================================================
   LOADING STATES
   =================================================================== */

.auth-button.loading {
	position: relative;
	color: transparent;
}

.auth-button.loading::after {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	top: 50%;
	left: 50%;
	margin-left: -10px;
	margin-top: -10px;
	border: 2px solid transparent;
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

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

/* ===================================================================
   SECURITY BADGES
   =================================================================== */

.security-badge-google {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	background: #f8f9fa;
	border: 1px solid #dadce0;
	border-radius: 8px;
	font-size: 12px;
	color: #5f6368;
	text-decoration: none;
	transition: all 0.2s ease;
}

.security-badge-google:hover {
	background: #e8eaed;
	text-decoration: none;
	color: #5f6368;
}

/* ===================================================================
   RESPONSIVE DESIGN
   =================================================================== */

@media (max-width: 640px) {
	.auth-modal .glass-effect {
		margin: 1rem;
		padding: 1.5rem;
	}
	
	.auth-button {
		padding: 1rem 1.5rem;
		font-size: 0.95rem;
	}
}