@import url(../fonts/inter/stylesheet.css);

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    font: inherit;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif!important;
    min-height: 100vh;
    min-height: 100dvh;
}

img, picture, svg , video {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    outline: none;
    background-color: transparent;
    border: none;
}

textarea {
    resize: none;
}

ul, ol {
    list-style: none;
}

.content {
    flex: 1 0 auto;
}

a {
    color: #00567a!important;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    color: #00a03b;
}

footer {
    text-align: center;
    font-size: 10px;
    color: #444647;
    padding: 30px 40px;
    background-color: white;
    transition: filter .2s ease;
}

.login-container {
    display: flex;
    min-height: 100dvh;
}

/* IZQUIERDA */
.login-left {
    width: 100%;
    padding: 40px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #00a03b 0%, #afcb37 100%);
    background: linear-gradient(135deg, #0087CD, #74bfe7);
}

.login__left-card {
    animation: fadeSlideUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 480px;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    border: 1px solid white;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: none;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-radius: 16px;
    padding: 2.5rem 2rem;

    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.login__title {
    color: oklch(37.3% 0.034 259.733);
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.015em;
}

.login__logo {
    margin: 0 auto 1.5rem;
}

.form__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form__field label {
    font-weight: 600;
    color: oklch(37.3% 0.034 259.733);
}

.login-left input,
input,
select {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 8px;
    border: none;
    outline: none;
    transition: all 0.2s ease;
    background: #f9fafb;
    box-shadow: 0 0 0 1px #e5e7eb;
    font-size: 14px;
    color: #00567a;
}

.aviso {
    font-size: 14px;
    padding: 20px;
    text-align: center;
    background-color: white;
    border-radius: 10px;
    line-height: 1.75;
    color: #565b65;
}

.aviso a {
    font-weight: 600;
}

.recuperar__password {
    display: block;
    text-align: end;
    font-size: 14px;
    font-weight: 600;
}

.login__subtitle {
    color: oklch(37.3% 0.034 259.733);
    font-size: 14px;
    margin-bottom: 0;
}

.login-left input:hover,
input,
select {
    box-shadow: 0 0 0 1px #0087CD;
}

.login-left input:focus,
input,
select {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(67, 160, 71, 0.4);
}

.input__wrapper {
    position: relative;
}

.input__wrapper:focus-within {
    transform: scale(1.02);
    transition: 0.2s ease;
}

.btn__login:active {
    transform: scale(0.97);
}

.icon__email,
.icon__eye {
    position: absolute;
    right: 10px;
    top: 26%;
}

.btn__login {
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 100%;
    margin-top: 1.25rem;
    transition: all 0.25s ease;
    font-weight: 600;
    background: linear-gradient(135deg, #43a047, #0087CD);
    margin-bottom: 3rem;
}

.btn__login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.login__title {
    font-size: 1.85rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.form__field label {
    font-size: 0.85rem;
    color: #6b7280;
}

.login__left-card {
    backdrop-filter: blur(4px);
}

/* DERECHA */
.login-right {
    position: relative;
    width: 65%;
    background: url('../img/familia-2.jpg') no-repeat center;
    background-size: cover; 
}

.login-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
}

.login__logo {
    transition: transform 0.3s ease;
}

.login__logo:hover {
    transform: scale(1.05);
}

form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.requirements {
  list-style: none;
  padding: 10px;
  background: #f1f3f6;
  border-radius: 8px;
  background: white;
}

.requirements li {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  color: #888;
  transition: 0.3s;
  font-size: 14px;
}

.requirements li.valid {
  color: green;
}

.requirements li.invalid {
  color: red;
}

.icon {
  margin-right: 8px;
  font-weight: bold;
}

.bg-white {
    background-color: white;
}

.navbar__layout {
    padding: 1rem 1.5rem;
    max-width: 1500px;
    margin: 0 auto;
}

.breadcrumb {
    background: linear-gradient(135deg, #43a047, #a5d6a7);
    width: 100%;
}

.breadcrumb__layout {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}

.breadcrumb__title {
    max-width: 93rem;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 1.5rem;
    color: white;
    font-weight: 500;
    font-size: 1.5rem;
}

.form__container {
    max-width: 600px;
    padding: 2rem;
    margin: 0 auto;
}

.form__container h2 {
    color: #565b65;
    font-size: 15px;
    margin-bottom: 2rem;
}

.form__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.tarjeta__layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.tarjeta__title {
    color: #00567a;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.tarjeta__sub {
    color: #00567a;
}

.btn-2 {
    background: #aa198d!important;
}

.map__container {
    max-width: 45rem;
    margin: 2rem auto 0;
}

.farm__form-layout {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.farm__form-container {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: white;
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.farm__form-bg {
    background: #e6ffe7;
    padding: 2rem;
}

.table__section__container {
    margin: 0 auto;
    padding: 2.5rem 2rem 0.5rem;
    max-width: 1200px;
    margin-top: 3rem;
}

.table__section__container h2 {
    color: #00567a;
    border-bottom: 3px solid #00567a;
    margin-bottom: 2rem;
    padding: 0.5rem;
    font-size: 1.5rem;
}

.navigation__btn {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.btn-3 {
    font-size: 15px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
    background: #00567a;
    color: white;
}

.btn-4 {
    font-size: 15px;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    outline: none;
    transition: all 0.3s;
    background-color: #43a047;
    color: white;
}

.btn.btn-5 {
	background-color: #aa198d;
    color: #fff;
}

.btn.btn-5:hover {
	background-color: #9d2084!important;
	color: #fff;
}

.table__container {
    border: 1px solid #00567a;
    border-radius: 20px;
}

.table__fa {
    border-collapse: collapse;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
}

.table__header {
    background-color: #00567a;
    color: #fff;
    font-size: 16px;
}

.table__header th {
    padding: 0.75rem 1.5rem;
}

.table__body { 
    font-size: 12px;
    color: #3c3f45;
    text-align: left;
}

.table__body tr {
    border-bottom: 1px solid #00567a;
}

.table__body th:first-child {
    white-space: nowrap;
    padding: 8px 24px;
}

.table__body td, .table__body th {
    padding: 8px 10px;
}

.table__body tr:last-child {
    border-bottom: none;
}

.btn-map {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 10px;
    background-color: #aa198d;
    transition: all 0.3s;
    color: white;
}

.error-msg {
    display: block;
    font-size: 0.85rem;
    margin-top: 6px;
    color: #e74c3c;
    min-height: 18px;
}

.success-msg {
    display: block;
    font-size: 0.85rem;
    margin-top: 6px;
    color: #27ae60;
    min-height: 18px;
}

.input-error {
    border: 2px solid #e74c3c !important;
    background: #fff5f5;
}

.input-success {
    border: 2px solid #27ae60 !important;
    background: #f5fff7;
}

button:disabled,
.btn:disabled {
    background: linear-gradient(145deg, #e0e0e0, #cfcfcf) !important;
    color: #888 !important;
    border: 1px solid #bbb !important;
    cursor: not-allowed;
    opacity: 0.8;
    transform: none;
}

button:disabled:hover,
.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

.btn-gotolist {
	top: 5.75rem;
    right: 0.6rem;
    background-color: #00567a;
    color: #fff;
    padding: 0.25rem;
    text-transform: uppercase;
    font-size: 12px;
    border: none;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.4);
    transition: all 0.3s;
}

input:disabled {
    background: linear-gradient(145deg, #f0f0f0, #e2e2e2);
    color: #777;
    border: 1px solid #d0d0d0;
    cursor: not-allowed;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

@media (max-width: 650px) {
	.table__fa thead th {
		display: none;
	}
		
	.table__fatbody th , .table__fa td {
		display: flex;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.85rem 1.65rem!important;
	}
	
	.table__fa td:first-child {
		padding-top: 1rem;
	}
	
	.table__fa td:last-child {
		padding-bottom: 1rem;
	}
	
	.table__fa tbody th::before , .table__fa td::before {
		font-weight: 700;
		text-transform: capitalize;
	}
	
	.table__fa td:nth-of-type(1)::before {
		content: "telefono";
	}
	
	.table__fa td:nth-of-type(2)::before {
		content: "dirección";
	}
	
	.table__fa tbody th:first-child {
		padding-top: 1rem !important;
		font-size: 0.95rem;
		display: flex;
		justify-content: center;
		background: #00567a;
        color: #fff;
	}
	
	.btn-cell {
		margin: 1rem 0;
	}
	
	.btn-cell button {
		width: 100%;
		height: 40px;
	}
	
	.btn-map {
        font-size: 14px;
        background-color: #aa198d;
        border: 2px solid #aa198d;
        color: white;
	}
	
	.btn-map:hover {
		background-color: white;
		color: #aa198d;
	}
	
	.map__container {
		max-width: calc(100% - 2rem);
	}
}

@media screen and (max-width: 880px) {
    .login-left {
        width: 100%;
    }
    .login-right {
        display: none;
    }
	.farm__form-container {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 500px) {
    .login-left {
        padding: 16px;
    }
    .login__title {
        font-size: 1.5rem;
    }
    .form__field label,
    .btn__login {
        font-size: 14px;
    }
    .login-left input,
    input,
    select {
        font-size: 13px!important;
    }
    .icon__email, .icon__eye {
        width: 18px;
    }
	.farm__form-bg {
		padding: 0;
	}
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}